aboutsummaryrefslogtreecommitdiffstats
path: root/main.s
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-12 00:30:05 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-12 00:30:05 -0400
commit69fd133fc4e4e16df4964e810424a720b4ede810 (patch)
treec7cccf052a149c0f20cc39cbcff9d919d5edeac8 /main.s
parent70682cbda993b6e6a552582d0a127c6bd46fe643 (diff)
downloadnes-snake-69fd133fc4e4e16df4964e810424a720b4ede810.tar.gz
nes-snake-69fd133fc4e4e16df4964e810424a720b4ede810.zip
start the ppu dma at the beginning of nmi, not the end
just to ensure that it has enough time (probably not an issue, but why not)
Diffstat (limited to 'main.s')
-rw-r--r--main.s11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.s b/main.s
index 53f7082..44b7c96 100644
--- a/main.s
+++ b/main.s
@@ -185,6 +185,11 @@ NMI:
BEQ end_nmi
draw_game:
+ LDA #$00
+ STA $2003
+ LDA #$02
+ STA $4014
+
- LDX num_draws
BEQ done_drawing
DEX
@@ -211,12 +216,6 @@ done_drawing:
LDA #$00
STA $2006
-do_dma:
- LDA #$00
- STA $2003
- LDA #$02
- STA $4014
-
end_nmi:
LDA #$00
STA sleeping