flat assembler
Message board for the users of flat assembler.

Index > Main > Why? "error: undefined symbol 'C0000040h'"

Author
Thread Post new topic Reply to topic
wyvern



Joined: 08 Dec 2011
Posts: 27
wyvern 20 Dec 2011, 16:31
I can use "0xC0000040" but no "C0000040h". I dont like the "Ox" prefix Sad

Why the assembler tell me this?

_________________
Thanks
Post 20 Dec 2011, 16:31
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler 20 Dec 2011, 17:04
0C0000040h

Need initial digit to tell compiler that it is a number.


Last edited by mindcooler on 20 Dec 2011, 17:06; edited 1 time in total
Post 20 Dec 2011, 17:04
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 618
cod3b453 20 Dec 2011, 17:04
C0000040h is actually a label identifier because it starts with a non-numerical digit, you can use 0C0000040h to rectify this.
Post 20 Dec 2011, 17:04
View user's profile Send private message Reply with quote
wyvern



Joined: 08 Dec 2011
Posts: 27
wyvern 20 Dec 2011, 18:57
thanks Smile
Post 20 Dec 2011, 18:57
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386 13 Jan 2012, 08:32
wyvern wrote:
I can use "0xC0000040" but no "C0000040h". I dont like the "Ox" prefix Sad


mov eax, $C000'0040 Wink
Post 13 Jan 2012, 08:32
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 13 Jan 2012, 15:57
0xABCDEF = 0ABCDEFH = $ABCDEF

Wink
Post 13 Jan 2012, 15:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.