Re: [cc65] newbie asm question

From: <>
Date: 2010-07-05 16:08:30
Try loading the number into a ZP pointer first, then access it from  there. 
    lda    _address
    sta    ptr1
    lda    _address+1
    sta    ptr1+1
    ldy    #0
    lda    (ptr1),y
The 6502 series processors cannot index an absolute address except for the  
jmp command.
Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community...or at least striving to!  :(
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jul 5 16:08:57 2010

This archive was generated by hypermail 2.1.8 : 2010-07-05 16:09:00 CEST