diff --git a/simple/main.s b/simple/main.s index 02f4d14..f013741 100644 --- a/simple/main.s +++ b/simple/main.s @@ -14,6 +14,7 @@ menuBg: .res 2 gameBg: .res 2 pressing: .res 1 + pressingOld: .res 1 position: .res 1 .segment "STARTUP" ; where code starts Reset: @@ -55,7 +56,7 @@ sta $0600, X sta $0700, X - ; one of the ranges is for sprie data. we can choose any + ; one of the ranges is for sprite data. we can choose any lda #$FF sta $0200, X lda #$00 @@ -80,6 +81,7 @@ ldx #$00 + LoadPalettes: lda PaletteData, X sta $2007 ; $3F00, $3F01, and so on @@ -89,6 +91,15 @@ cpx #$20 ; 32 in decimal bne LoadPalettes + ldx #$00 + + LoadSprites: + lda SpriteData, X + sta $0200, X + inx + cpx #$20 + bne LoadSprites + LoadMenu: ; initialize world variable to point to world data lda #