Search code examples
assemblynasmyasm

What is the correct way to prevent this YASM warning?


I have this line of code in YASM (32-bit code):

call 0xC0000000

which works correctly, but which gives me this warning:

warning: value does not fit in signed 32 bit field

There are many ways to work around the warning, or to suppress, even ignore it completely.
But what I would like to know is:

What is the proper way to avoid this warning in the first place?


Solution

  • Looks like replacing it with -0x40000000 fixes it (because this value is signed).