The MASM Forum

General => The Campus => Topic started by: Magnum on February 15, 2013, 12:04:33 PM

Title: missing operator in expression
Post by: Magnum on February 15, 2013, 12:04:33 PM
I don't know if 0 ch should be 0ch or something else. ??

error A2206: missing operator in expression

         mov esi, [esp +0 ch]; context pointer register
Title: Re: missing operator in expression
Post by: dedndave on February 15, 2013, 12:31:56 PM
looks like a typo
0Ch sounds right
but, it may be they intended to put something else in there, too - lol
0ACh
Title: Re: missing operator in expression
Post by: hutch-- on February 16, 2013, 12:47:11 AM
Does it look like it shoulfd have a number 12 in that location 12 = 0Ch ?
Title: Re: missing operator in expression
Post by: Gunther on February 16, 2013, 01:55:55 AM
Andy,

Quote from: Magnum on February 15, 2013, 12:04:33 PM
I don't know if 0 ch should be 0ch or something else. ??

error A2206: missing operator in expression

         mov esi, [esp +0 ch]; context pointer register

definitively: 0Ch (= 12 decimal)

Gunther
Title: Re: missing operator in expression
Post by: Magnum on February 16, 2013, 03:12:04 AM
Hutch,

orig code had 0 ch, there was an unneeded space.

Code now works as intended.

Andy

I am going to find out what this is and what it does exactly.

It is part of an exception handler

assume esi: PTR CONTEXT
mov [esi]. regEip, offset continue