Error A2006: Undefined symbol:

Hi,

There is a weird issue in my assembly program. When I link the assembly file, an error says "Error A2006: Undefined symbol :FFFFFFFFh"

I did define this as a dd in .data area.
And, I found that whenever I define values greater than 10 (a , b,c,d,e,f in hex) , it gives me this error. How am I suppose to fix it?
icysmartyAsked:
Who is Participating?
 
dimitryConnect With a Mentor Commented:
To add to Stefan's comment:
Try also
  0FFFFFFFFh
0
 
stefan73Commented:
Hi icysmarty,

You didb't specify which asm you use.

Did you try the C-like 0xffffffff notation? Or you can try $ffffffff.

Cheers!

Stefan
0
 
icysmartyAuthor Commented:
Stefan, I tried that few times but it didn't work.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
icysmartyAuthor Commented:
OH YEAH! It works now..
dimitry, I put an '0' in front and now it works like charm.
Why can't I jsut put FFFFFFFFh??
0
 
dimitryCommented:
Assembler needs somehow to distinguish between variable names and numbers.
FFFFFFFFh is valid variable name... And in MASM, TASM or NASM they decided to do this way.
0
 
icysmartyAuthor Commented:
i see...
last quick question, if I do not specify a number by either d(decimal), h(hex), b(binary),
what will the assembly recognize it as?

Like 037AF – 861273 – 0FFFFFFFF + 1111111?
0
 
dimitryCommented:
I suspect that it will be an error.
Decimal is: {0-9}*
Hex is : 0{0-9,A-F}*h
So 037AF is illegal number, but maybe "clever" compiler will set it as 037AFh automatically because of A and F...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.