Changes

Jump to: navigation, search

6502 Emulator Example Code

128 bytes added, 18:26, 18 January 2022
Fill the Bitmapped Display
sta $11
ldx #$06 ; max value for $11, the high byte of the pointer
ldy #$00 ; index- this value is added to the pointer
lda #$07 ; colour codeto be used to fill the display
loop: sta ($10),y ; store colourto the value of the pointer + Y iny ; increment index- prepare to fill next pixel bne loop ; branch until page done- stops when Y==0
inc $11 ; increment high byte of pointer
lda $11 ; load page number as colour
cpx $11 ; compare with max value
bne loop ; continue if not done

Navigation menu