Files
Nintendont/kernel/asm/PADIsBarrel.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

18 lines
211 B
ArmAsm

#include <asm.h>
PADIsBarrel:
cmpwi %r3, 0
blt invalid
cmpwi %r3, 3
bgt invalid
lis %r0, 0xD300
ori %r0, %r0, 0x3130 #chan0 base
slwi %r3, %r3, 2
lwzx %r3, %r3, %r0
blr
invalid:
li %r3, 0
blr