mirror of
https://github.com/project-slippi/Nintendont.git
synced 2025-10-06 00:22:40 +02:00
-completely restructured how internal wii vc titles get read in, again hopefully it didnt break anything
31 lines
467 B
ArmAsm
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
|