From a92499fc40afc38da166e859c2eb4cde1593207e Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 1 Jun 2015 00:35:25 -0400 Subject: [PATCH] Fix a bug - *now* we don't need InitSpriteTables. --- pewpew.asm | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/pewpew.asm b/pewpew.asm index d306789..5a04839 100644 --- a/pewpew.asm +++ b/pewpew.asm @@ -59,7 +59,6 @@ Start: SetA8Bit jsr LoadPaletteAndTileData - jsr InitSpriteTables jsr InitWorld ; Set screen mode: 16x16 tiles for backgrounds, mode 1. @@ -210,25 +209,6 @@ LoadPaletteAndTileData: -InitSpriteTables: ; TODO(mcmillen): why do we need this? - SetA16Bit - - ldx #$0000 - ; Fill sprite table 1. - lda #$01 -- - sta spriteTableStart, X - .rept 4 - inx - .endr - cpx #spriteTable1Size - bne - - - SetA8Bit - rts - - - InitWorld: ; Start the background color as a dark blue. lda #4 @@ -731,6 +711,7 @@ UpdateSprites: .rept 4 inx .endr + bra - + rts