diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 21:03:11 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 21:03:11 +0000 |
commit | caa82a1e66f6b9517ba2199cdc4297bd7be8eaa2 (patch) | |
tree | be5831b0d3284c0af5c3777e6997d50efa910818 /test/multisection.asm | |
parent | 9eb185bfdb10f1dfccbb9a702d2801a32cd1b13d (diff) | |
download | nasm-caa82a1e66f6b9517ba2199cdc4297bd7be8eaa2.tar.gz nasm-caa82a1e66f6b9517ba2199cdc4297bd7be8eaa2.tar.bz2 nasm-caa82a1e66f6b9517ba2199cdc4297bd7be8eaa2.zip |
NASM 0.98.16
Diffstat (limited to 'test/multisection.asm')
-rw-r--r-- | test/multisection.asm | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/test/multisection.asm b/test/multisection.asm index 327e518..ae84345 100644 --- a/test/multisection.asm +++ b/test/multisection.asm @@ -1,42 +1,42 @@ -
-section .stringdata
-mystr1: db "Hello, this is string 1", 13, 10, '$'
-
-section .extra_code
-org 0x200
-bits 16
-more:
- mov si, asciz1
- mov ah, 0x0E
- xor bx, bx
-.print:
- lodsb
- test al, al
- jz .end
- int 0x10
- jmp short .print
-.end:
-
- xor ax, ax
- int 0x16
-
- mov ax, 0x4c00
- int 0x21
-
-section .appspecific
-asciz1: db "This is string 2", 0
-
-section .code
-org 0x100
-bits 16
-
-start:
- mov dx, mystr1
- mov ah, 9
- int 0x21
-
- xor ax, ax
- int 0x16
-
- jmp more
-
+ +section .stringdata +mystr1: db "Hello, this is string 1", 13, 10, '$' + +section .extra_code +org 0x200 +bits 16 +more: + mov si, asciz1 + mov ah, 0x0E + xor bx, bx +.print: + lodsb + test al, al + jz .end + int 0x10 + jmp short .print +.end: + + xor ax, ax + int 0x16 + + mov ax, 0x4c00 + int 0x21 + +section .appspecific +asciz1: db "This is string 2", 0 + +section .code +org 0x100 +bits 16 + +start: + mov dx, mystr1 + mov ah, 9 + int 0x21 + + xor ax, ax + int 0x16 + + jmp more + |