mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	Make it possible to generate variants of RET(F) with explicit operand size specified without having to use o16/o32/o64. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
		
			
				
	
	
		
			57 lines
		
	
	
		
			432 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			432 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
| 	;; All the flavors of RET
 | |
| %ifndef ERROR
 | |
|  %define ERROR 0
 | |
| %endif
 | |
| 
 | |
| 
 | |
| 	bits 16
 | |
| 
 | |
| 	ret
 | |
| 	retn
 | |
| 	retf
 | |
| 	retw
 | |
| 	retnw
 | |
| 	retfw
 | |
| 	retd
 | |
| 	retnd
 | |
| 	retfd
 | |
| %if ERROR
 | |
| 	retq
 | |
| 	retnq
 | |
| 	retfq
 | |
| %endif
 | |
| 
 | |
| 	bits 32
 | |
| 
 | |
| 	ret
 | |
| 	retn
 | |
| 	retf
 | |
| 	retw
 | |
| 	retnw
 | |
| 	retfw
 | |
| 	retd
 | |
| 	retnd
 | |
| 	retfd
 | |
| %if ERROR
 | |
| 	retq
 | |
| 	retnq
 | |
| 	retfq
 | |
| %endif
 | |
| 
 | |
| 	bits 64
 | |
| 
 | |
| 	ret
 | |
| 	retn
 | |
| 	retf		; Probably should have been RETFQ, but: legacy...
 | |
| 	retw
 | |
| 	retnw
 | |
| 	retfw
 | |
| %if ERROR
 | |
| 	retd
 | |
| 	retnd
 | |
| %endif
 | |
| 	retfd
 | |
| 	retq
 | |
| 	retnq
 | |
| 	retfq
 |