Code: Select all
;at this point when my code starts, the scanline is between 93-95
BIT $2002
BPL #$FB ;back to $2002
;at this point now, the scanline has reached 241
LDA $05 ;hi address for attribute
STA $2006
LDA $04 ;lo address for attribute
STA $2006
LDA $2007 ;dummy read
LDA $2007 ;read current byte within loaded attribute address
ORA $1A3 ;take current value of A, and ORA it to the current byte in $1A3
STA $1A3 ;now store the new A value back into $1A3, this is my new attribute value for later
;at this point i load the games xy registers to restore $2005
LDA $73F
STA $2005
LDA $740
STA $2005
RTS
