diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 21:02:47 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 21:02:47 +0000 |
commit | 9eb185bfdb10f1dfccbb9a702d2801a32cd1b13d (patch) | |
tree | 8fb0cb3aafd0b78da681ca24c0d25562f394c47d /test/multisection.asm | |
parent | ce61607e1125f1fc1f7c74dfa486031bb7c898fa (diff) | |
download | nasm-9eb185bfdb10f1dfccbb9a702d2801a32cd1b13d.tar.gz nasm-9eb185bfdb10f1dfccbb9a702d2801a32cd1b13d.tar.bz2 nasm-9eb185bfdb10f1dfccbb9a702d2801a32cd1b13d.zip |
NASM 0.98.15
Diffstat (limited to 'test/multisection.asm')
-rw-r--r-- | test/multisection.asm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/multisection.asm b/test/multisection.asm new file mode 100644 index 0000000..327e518 --- /dev/null +++ b/test/multisection.asm @@ -0,0 +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
+
|