Files
Nintendont/kernel/asm/PADReadVS.S
FIX94 afcfa4b653 -added deadzones to wii vc gamepad reads and heavily changed memory to make space for that, hopefully it didnt break anything
-completely restructured how internal wii vc titles get read in, again hopefully it didnt break anything
2017-09-20 06:14:16 +02:00

31 lines
467 B
ArmAsm

#include <asm.h>
.set PadStub, 0x93000000
.set PadBuff, 0x93003100
PADReadVS:
#original instruction
mr %r28, %r3
stwu %sp, -0x20(%sp)
mflr %r0
stw %r0, 0xC(%sp)
#to stub instead of arm
lis %r3, PadStub@h
ori %r3, %r3, PadStub@l
mtctr %r3
bctrl
lis %r3, PadBuff@h
ori %r3, %r3, PadBuff@l
li %r0, 0
#store player data for ARM JVSIO.c
dcbf %r0, %r3
lwz %r0, 0xC(%sp)
mtlr %r0
addi %sp, %sp, 0x20
blr