Hello, Guest the thread was viewed7.7k times and contains 20 replies

last post from MC64 at the

Problem with LDA_FAR

  • I tried this out. It doesnt work. Kibo had helped me to find another way with the Q-Register:

    Code
    1. ; Load $FF80000 (colram) address into Q register (A,X,Y,Z)
    2. LDA #$00
    3. LDX #$00
    4. LDY #$F8
    5. LDZ #$0F
    6. ; Write Q register to memory location $02-$05
    7. STQ $02
    8. ; Use 32Bit instruction to load A register from ($02) + Z
    9. LDZ #$00
    10. LDA [$02],Z

    That works fine and is easy to understand for me.