nasm/test/br3392472.asm
H. Peter Anvin (Intel) 2586cee21d BR 3392472: don't complain on wraparound for lower bit modes
If the address we are using is >= the size of the instruction, then
don't complain on overflow as we can wrap around the top and bottom of
the address space just fine.

Alternatively we could downgrade it to OUT_WRAP in that case.

Reported-by: C. Masloch <pushbx@38.de>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2019-08-16 01:44:49 -07:00

13 lines
153 B
NASM

org 0
%ifndef SEEK
%define SEEK 0
%endif
times SEEK - ($ - $$) nop
jmp near init
%ifndef NUM
%define NUM 9956h
%endif
times NUM - ($ - $$) db 0
init: