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 SkipVought 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
Nov 3, 2005
6
0
0
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top