Open
Description
The SNESdev wiki states the Hyperkin mouse requires at least 170 master cycles between $4017/$4018 reads (Source).
I manually m-cycle counted the _MouseData
read-loop with the aid of Nova's SNES instruction speed compare tool
- Read loop is:
lda REG_JOYA,x ; lsr ; rol mouse_x,x ; rol mouse_y,x ; dey ; bne @_m30
- SlowROM: 36 + 14 + 52 + 52 + 14 + 22 = 190 (should work)
- FastROM: 30 + 12 + 46 + 46 + 12 + 18 = 164 (too short)
I'll fix the FastROM read-loop over the weekend but I will need to find and coordinate with someone who owns a hyperkin mouse to verify the fix works.
I also do not know if a Hyperkin mouse is compatible with how the new VBlank ISR handles lag frames. So I will need to test that as well.
Metadata
Metadata
Assignees
Labels
No labels