AnsweredAssumed Answered

High-Address into the accumulator in asm using only LDA

Question asked by Brax02 on Mar 22, 2013
Latest reply on Mar 24, 2013 by bigmac

Hello,

 

I have declare a table like that.

 

ABC:                DC.W  $1234          

 

The address of ABC is in my example 0xF200

 

I want to load in the accumulator 0xF2 only using a LDA command.

 

LDA  #ABC==> A=0x0, 0x0 is the LSB of the address and not the MSB of the address 0xF2

 

How can i do that ?

 

for sure I can do something like but it's not the goal.

 

          LDHX #ABC  ; HX = F200

          PSHH         

          PULA          ;A=0xF2

Outcomes