diff options
-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 |