diff options
author | Debbie Wiles <debs@dwiles.demon.co.uk> | 2002-05-24 14:33:35 +0000 |
---|---|---|
committer | Debbie Wiles <debs@dwiles.demon.co.uk> | 2002-05-24 14:33:35 +0000 |
commit | 591553d88dccc6bfdb36e06aabc0f2a2aea06dc6 (patch) | |
tree | f3606b852630e13a503e5ab8e9c1664dc3e595d6 /test | |
parent | 8b923b1231c41ddc8343038686fc90b455c9ab2f (diff) | |
download | nasm-591553d88dccc6bfdb36e06aabc0f2a2aea06dc6.tar.gz nasm-591553d88dccc6bfdb36e06aabc0f2a2aea06dc6.tar.bz2 nasm-591553d88dccc6bfdb36e06aabc0f2a2aea06dc6.zip |
Added extra tests, to fully test multisection support for .bin format
Diffstat (limited to 'test')
-rw-r--r-- | test/multisection.asm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/multisection.asm b/test/multisection.asm index ae84345..0da2fc7 100644 --- a/test/multisection.asm +++ b/test/multisection.asm @@ -1,3 +1,22 @@ +; To test where code that is placed before any explicit SECTION +; gets placed, and what happens if a .text section has an ORG +;statement, uncomment the following lines. +; +; times 10h nop +; +;section .text +;org 0x300 +; times 20h inc ax + +; let's see which of these sections can be placed in the specified order. + +section .appspecific +section .data +section .stringdata +section .mytext +section .code +section .extra_code + section .stringdata mystr1: db "Hello, this is string 1", 13, 10, '$' @@ -40,3 +59,28 @@ start: jmp more +section .text + xor eax,eax + times 50h nop + +section .mytext + + xor ebx,ebx + +section .data + db 95h,95h,95h,95h,95h,95h,95h,95h + +section .hmm + resd 2 + +section .bss + resd 8 + +section .final1 + inc ax + +section .final2 + inc bx + +section .final3 + inc cx |