diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-02 14:20:36 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-02 14:20:36 -0400 |
commit | 13ac31004f6c80c7e66b6c9f23a7e17d656714c1 (patch) | |
tree | 668c3f103c9a9a79d0f4187e1b8502d3076c99ac /test.s | |
parent | b37293abdf2f7a8c55e193d0a4cbff8a273f4dfe (diff) | |
download | nes-input-test-13ac31004f6c80c7e66b6c9f23a7e17d656714c1.tar.gz nes-input-test-13ac31004f6c80c7e66b6c9f23a7e17d656714c1.zip |
comments
Diffstat (limited to 'test.s')
-rw-r--r-- | test.s | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |