diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-12 00:30:05 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-12 00:30:05 -0400 |
commit | 69fd133fc4e4e16df4964e810424a720b4ede810 (patch) | |
tree | c7cccf052a149c0f20cc39cbcff9d919d5edeac8 /main.s | |
parent | 70682cbda993b6e6a552582d0a127c6bd46fe643 (diff) | |
download | nes-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.s | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |