Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assembly help

Status
Not open for further replies.

Nerdie1234

Programmer
Joined
Nov 3, 2005
Messages
6
Location
AU
Hi I'm learning to program in assembly using the Motarolla 68HC11 chip.

Whats the difference betweeen these two lines?

ldx #label5

and

ldx label5

where label5: fcb $34,$f2

Doesn't the address of label5 just get stored into X after both lines?

Thanks!
 
I think that one of them loads x with the address of label5, while the other loads x with the contents of label5.

It's been a long time since I used a 68xx assembler, but I think the #label5 loads the address as an immediate value.
 
Thanks!

I just figured that out myself too :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top