“Warning: a signed dword immediately exceeds the bounds” is the current issue of my existence as it seems inconsistent or I just don’t see the obvious fact.
I declare the following structure:
struc FRTType .class resq 1 ; Class .type resq 1 ; Type endstruc
I have the following assignments:
%assign TYPE_SCALAR 0xfffffffffffffff1 %assign INTEGER 0xffffffff1000a8a9
And in the function I have:
cmp qword [rdi+FRTType.class], TYPE_SCALAR ; This works fine jne .exception cmp qword [rdi+FRTType.type], INTEGER ; THIS PRODUCES WARNING
I know that I can mov rax, INTEGER and then perform a comparison, but this seems unnecessary since the first comparison has no problems.
assembly x86-64 nasm
Frank C.
source share