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

36 lines
992 B
ArmAsm

/*
RestoreSettingsVS4V06JAP.S for Nintendont (Kernel)
Copyright (C) 2015 FIX94
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation version 2.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <asm.h>
.set VS4_BACKUP, 0xD3003500
RestoreSettingsVS:
lis %r3, VS4_BACKUP@h
ori %r3, %r3, VS4_BACKUP@l
lwz %r4, -0xCDC(%r13)
lwz %r5, -0xC38(%r13)
li %r6, 0x2E
memcpy:
subic. %r6, %r6, 1
lbzx %r0, %r3, %r6
stbx %r0, %r4, %r6
stbx %r0, %r5, %r6
bne memcpy
blr