News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

db hexa value , error

Started by gnn42, January 08, 2012, 01:13:05 PM

Previous topic - Next topic

gnn42

Hello i try to declare a new string inside my data segment, but i got a strange error:

My str

str db 0xEB,0x0F,0xBE,0x39,0xE7,0x56,0x76,0xFF,0xD6,0xB8

And the error,

A2206 missing operator in expression


Thank you for help.

qWord

MASM doesn't support this syntax for hexadecimal numbers. instead the 'h'-suffix is used:
str db 0EBh,0F,39h
FPU in a trice: SmplMath
It's that simple!

dedndave

#2
Quotestr db 0EBh,0F,39h

i think that's the first time i ever saw qWord make a mistake   :bg

str db 0EBh,0Fh,0BEh,39h,0E7h,56h,76h,0FFh,0D6h,0B8h

i would use a longer name   :P
"str" may be used elsewhere, and is actually a Hungarian-notation prefix
"str1" is a little better

gnn42