Skip to content

Commit 02da1ca

Browse files
committed
read keyboard after nmi wait
1 parent f33260e commit 02da1ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/nmi/nmi.asm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ nmi: pha
2828
jsr pollControllerButtons
2929
lda #$00
3030
sta lagState ; clear flag after lag frame achieved
31-
.if KEYBOARD
32-
; Read Family BASIC Keyboard
33-
jsr pollKeyboard
34-
.endif
3531
lda #$01
3632
sta verticalBlankingInterval
3733
pla

src/util/core.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ updateAudioWaitForNmiAndResetOamStaging:
6565
lda verticalBlankingInterval
6666
beq @checkForNmi
6767

68+
.if KEYBOARD
69+
; Read Family BASIC Keyboard
70+
jsr pollKeyboard
71+
.endif
6872
resetOAMStaging:
6973
; Hide a sprite by moving it down offscreen, by writing any values between #$EF-#$FF here.
7074
; Sprites are never displayed on the first line of the picture, and it is impossible to place

0 commit comments

Comments
 (0)