mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
Added extra tests, to fully test multisection support for .bin format
This commit is contained in:
parent
8b923b1231
commit
591553d88d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user