What is the difference between the '0x00' and '00h' formats in Assembler code?

Status
Not open for further replies.

shaun_c_m

Junior Member level 2
Joined
Oct 12, 2007
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,518
what is the difference between the '0x00' and '00h' formats in assembler code? are they interchangeable?

examples:

number_temp equ 0x1a
number_temp equ 1ah


what does the '0x' stand for ?



thanks
 

Re: simple question

so the '0x' isnt a bank/page reference or anything?
 

simple question

Nope just a way of saying it's a hex number.

Just like a period means it decimal ie = .12 is the same as 12d
 

Re: simple question

thank-you!
 

Re: simple question

there is no difference between them. in assembly u use 0x because there should be a defference between characher and numbers. u specify for compiler that x is a base and is not a character for this u should use one 0 before it.
 

Re: simple question

In 0x09: here 0X indiactes Processor speed..
thank u..
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…