JoypadInt -> Joypad

This matches all other interrupts. The old Joypad was renamed to
UpdateJoypad.
This commit is contained in:
mid-kid 2020-02-23 14:33:53 +01:00
parent 44128c5d98
commit c0b6e5bc21
3 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ SECTION "serial", ROM0
jp Serial
SECTION "joypad", ROM0
jp JoypadInt
jp Joypad
; Game Boy cartridge header

View File

@ -1,4 +1,4 @@
JoypadInt::
Joypad::
; Replaced by Joypad, called from VBlank instead of the useless
; joypad interrupt.
@ -13,7 +13,7 @@ ClearJoypad::
ldh [hJoyDown], a
ret
Joypad::
UpdateJoypad::
; This is called automatically every frame in VBlank.
; Read the joypad register and translate it to something more
; workable for use in-game. There are 8 buttons, so we can use

View File

@ -131,7 +131,7 @@ VBlank0::
ld [wTextDelayFrames], a
.ok2
call Joypad
call UpdateJoypad
ld a, BANK(_UpdateSound)
rst Bankswitch
@ -325,7 +325,7 @@ VBlank4::
call hTransferVirtualOAM
call Joypad
call UpdateJoypad
xor a
ld [wVBlankOccurred], a
@ -364,7 +364,7 @@ VBlank5::
xor a
ld [wVBlankOccurred], a
call Joypad
call UpdateJoypad
xor a
ldh [rIF], a