6510 - STA - 0x99 - Absolute,Y

From Public Wiki
Jump to navigation Jump to search

Synopsis

Stores value of A into the location of BASE+Y.

Assembly Demo

; Subroutine BlankScreen()
; write ' ' to the memory from $0428 to $07E7
C000: A0 00      LDY  #$00
C002: A9 20      LDA  #$20    ; ' ' space character
C004: 99 00 04   STA  $0400,Y
C007: 99 00 05   STA  $0500,Y
C00A: 99 00 06   STA  $0600,Y
C00D: 99 E8 06   STA  $06E8,Y
C010: 88         DEY
C011: D0 F1      BNE  $C004
C013: 60         RTS
;end Subroutine BlankScreen()

BASIC Demo

1 fora=49152to49171:readb:pokea,b:nexta 
49152 data 160,0,169,32,153,0,4,153    
49160 data 0,5,153,0,6,153,235,6      
49168 data 136,208,241,96