read joypad in vbl so that inputs are more reactive

This commit is contained in:
2019-01-06 09:26:20 +01:00
parent 505227d5aa
commit 5753a7c1e7
2 changed files with 30 additions and 15 deletions

View File

@@ -12,14 +12,19 @@ Rendered: ds 2 ; progressing pointer in old buffer
SECTION "V-Blank Interrupt Handler", ROM0[$40]
VBlankInterruptHandler:
jr LCDStatInterruptHandler
; save registers
push af
push bc
call ReadJoypad
jr LCDStatInterruptHandler.start
SECTION "LCD Stat Interrupt Handler", ROM0[$48]
LCDStatInterruptHandler:
; save registers
push af
push bc
.start
; check there are tiles to render
ldh a, [LinesLeft]
or a