From 69fd133fc4e4e16df4964e810424a720b4ede810 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 12 Oct 2014 00:30:05 -0400 Subject: 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) --- main.s | 11 +++++------ 1 file 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 -- cgit v1.2.3