summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-02 14:20:36 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-02 14:20:36 -0400
commit13ac31004f6c80c7e66b6c9f23a7e17d656714c1 (patch)
tree668c3f103c9a9a79d0f4187e1b8502d3076c99ac
parentb37293abdf2f7a8c55e193d0a4cbff8a273f4dfe (diff)
downloadnes-input-test-13ac31004f6c80c7e66b6c9f23a7e17d656714c1.tar.gz
nes-input-test-13ac31004f6c80c7e66b6c9f23a7e17d656714c1.zip
comments
-rw-r--r--test.s11
1 files changed, 7 insertions, 4 deletions
diff --git a/test.s b/test.s
index 5b76d03..3814693 100644
--- a/test.s
+++ b/test.s
@@ -121,18 +121,21 @@ turn_red:
NMI:
JSR read_controller1
+ ; load the sprite into the ppu ports (from $0200)
LDA #$00
STA $2003
LDA #$02
STA $4014
LDA #$80
- STA $0200
- STA $0203
+ STA $0200 ; x position
+ STA $0203 ; y position
+
LDA #$00
- STA $0201
+ STA $0201 ; set the sprite number to display
+
LDA #$00
- STA $0202
+ STA $0202 ; set the sprite attributes (palette, flipping, etc)
; if A is not pressed, return
LDA buttons_pressed.w