0

I'm trying to write the following in x86 MASM assembly, in visual studio 2019:

PROCESS_INFORMATION_struct= dword ptr -B0h
STARTUPINFO_struct= dword ptr- A0h

But i'm getting the following error(s):

Error   A2006   undefined symbol : A0h
Error   A2006   undefined symbol : B0h

Thing is, it only happens when I write a hex letter at the beggining of a number. If, for instance, I had written 90h, it works just fine.

In the project dependancies I added the Microsoft Macro Assembler, and set the file to be assembled using the Microsoft Macro Assembler, if that helps.

Any help is appreciated!

nortain32
  • 69
  • 1
  • 7
  • Add a leading zero. Most x86 assemblers do not recognise parameters starting with letters as hexadecimal numbers, so if you want to enter a number like that you have to write eg `0B0h` – ecm May 06 '23 at 13:25
  • Yep, figured it. But thanks! – nortain32 May 06 '23 at 15:34

0 Answers0