NASM Bug and rax, 0x1000000000
Posted: Wed Jun 19, 2013 2:37 am
Hi, this is my macro.
%macro ExtractBits 3; %1 = Register, %2 = Starting Bit, %3 = Ending Bits
%if %2 > 0
shr %1, %2
%endif
and %1, ((1 << (%3 - %2)) - 1)
%endmacro
but the nasm compiler displays this warning:
warning: signed dword immediate exceeds bounds
Does anyone know how to fix this?
%macro ExtractBits 3; %1 = Register, %2 = Starting Bit, %3 = Ending Bits
%if %2 > 0
shr %1, %2
%endif
and %1, ((1 << (%3 - %2)) - 1)
%endmacro
but the nasm compiler displays this warning:
warning: signed dword immediate exceeds bounds
Does anyone know how to fix this?