From f10151477771493b712d607d280a26e3247c8a1c Mon Sep 17 00:00:00 2001 From: droniu Date: Sun, 23 May 2021 18:54:47 +0200 Subject: [PATCH] selection arrow 9-tile movement --- simple/main.s | 94 +++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 76 insertions(+), 18 deletions(-) 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 #