mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	absolute.asm is useful even for other backends, so explicitly test to see if ORG is possible for this format. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
		
			
				
	
	
		
			42 lines
		
	
	
		
			352 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			352 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
| ;Testname=bin; Arguments=-fbin -oabsolute.bin; Files=stdout stderr absolute.bin
 | |
| %ifmacro org
 | |
| 	org 7c00h
 | |
| %endif
 | |
| init_foo:
 | |
| 	jmp init_bar
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 
 | |
| init_bar:
 | |
| 	mov [b1],dl
 | |
| 	mov [b2],edx
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	nop
 | |
| 	ret
 | |
| 
 | |
| 	absolute init_bar+7
 | |
| b1:	resb 1
 | |
| b2:	resd 6
 |