The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: axtens on April 12, 2007, 08:52:01 AM

Title: Odd (from a newbie's point of view) error message
Post by: axtens on April 12, 2007, 08:52:01 AM
Error message:
C:\masm32\projects\UTFConvert\convert.asm(81) : error A2206: missing operator in expression

Code:
offsetsFromUTF8         DWORD    0x00000000, 0x00003080, 0x000E2080, 0x03C82080, 0xFA082080, 0x82082080

I can't figure this out.

Kind regards,
Bruce.
Title: Re: Odd (from a newbie's point of view) error message
Post by: axtens on April 12, 2007, 09:24:49 AM
And the answer to my own question is, "use the right markup for hexadecimal values"

offsetsFromUTF8         DD 00000000h, 00003080h, 000E2080h, 03C82080h, 0FA082080h, 82082080h
Title: Re: Odd (from a newbie's point of view) error message
Post by: boogara on January 11, 2008, 06:00:42 AM
Quote from: axtens on April 12, 2007, 09:24:49 AM
And the answer to my own question is, "use the right markup for hexadecimal values"

offsetsFromUTF8         DD 00000000h, 00003080h, 000E2080h, 03C82080h, 0FA082080h, 82082080h
Actually, hex can be expressed in either 0x... or ...h, but by default I don't think MASM knows what a DWORD is.
Title: Re: Odd (from a newbie's point of view) error message
Post by: GregL on January 11, 2008, 06:49:46 PM
boogara,

Quote... but by default I don't think MASM knows what a DWORD is.

Where did you get that idea?

Title: Re: Odd (from a newbie's point of view) error message
Post by: boogara on January 11, 2008, 07:00:33 PM
Edit

I take back what I said...I had a brain fart T_T  But, I was wrong...just didn't realize it until now.
Title: Re: Odd (from a newbie's point of view) error message
Post by: GregL on January 11, 2008, 07:16:44 PM
boogara,

No problem, just wanted to clear that up.

Cheers