Author Topic: "warning: word data exceeds bounds"  (Read 9785 times)

Offline wyvern666

  • Jr. Member
  • *
  • Posts: 32
"warning: word data exceeds bounds"
« on: February 07, 2012, 04:29:04 PM »
Ok, i found this warning when i:

a) Work with a segment declared as:
Code: [Select]
[SECTION CODE PUBLIC ALIGN=16 CLASS=CODE FLAT]         
The warning only happens with "FLAT", no with "USE32".
For some reason i think that if i am not going to mix 16-bit and 32-bit code i am better declaring all in FLAT, after all that is win32 about (correct me if i am wrong). I use this same approach when declaring segments in MASM.

b) Declare a constant like this:
Code: [Select]
STD_OUTPUT_HANDLE equ 0FFFFFFF5h
Using "0xFFFFFFF5" doesnt fix it.

c) Push the constant to stack:
Code: [Select]
PUSH STD_OUTPUT_HANDLE
The warning go away if size operator "DWORD" is specified.

Ok, so is this a bug?. Im with NASM 2.09.10. Thanks