Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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
 

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
Re: simple question

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

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,686
Helped
179
Reputation
356
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,700
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
 

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
Re: simple question

thank-you!
 

hamed_sotoudi

Full Member level 3
Joined
Aug 1, 2007
Messages
158
Helped
15
Reputation
30
Reaction score
4
Trophy points
1,298
Location
Germany Hamburg
Activity points
2,207
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.
 

ashokkumar.am

Newbie level 6
Joined
Oct 22, 2007
Messages
12
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,350
Re: simple question

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

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top