NASM 0.98.16
[nasm/avx512.git] / test / multisection.asm
blobae84345a86b6e94b69454d3606fe2ad75ebdf2bd
2 section .stringdata
3 mystr1: db "Hello, this is string 1", 13, 10, '$'
5 section .extra_code
6 org 0x200
7 bits 16
8 more:
9 mov si, asciz1
10 mov ah, 0x0E
11 xor bx, bx
12 .print:
13 lodsb
14 test al, al
15 jz .end
16 int 0x10
17 jmp short .print
18 .end:
20 xor ax, ax
21 int 0x16
23 mov ax, 0x4c00
24 int 0x21
26 section .appspecific
27 asciz1: db "This is string 2", 0
29 section .code
30 org 0x100
31 bits 16
33 start:
34 mov dx, mystr1
35 mov ah, 9
36 int 0x21
38 xor ax, ax
39 int 0x16
41 jmp more