mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-Patcher
synced 2025-09-02 19:41:13 +02:00
Use proper mfspr functions
This commit is contained in:
parent
e17dbf9ce1
commit
f0f1063b26
2
go.mod
2
go.mod
@ -6,6 +6,6 @@ require (
|
||||
github.com/logrusorgru/aurora/v3 v3.0.0
|
||||
github.com/wii-tools/GoNUSD v0.2.2
|
||||
github.com/wii-tools/arclib v1.0.0
|
||||
github.com/wii-tools/powerpc v0.0.0-20220411041712-104089eba964
|
||||
github.com/wii-tools/powerpc v0.0.0-20220518173947-5e34f2388e0d
|
||||
github.com/wii-tools/wadlib v0.3.1
|
||||
)
|
||||
|
4
go.sum
4
go.sum
@ -4,7 +4,7 @@ github.com/wii-tools/GoNUSD v0.2.2 h1:vHiSLI9sK9Q4zbCt24jMiq/lo2FISLBuCHoaY3Bd88
|
||||
github.com/wii-tools/GoNUSD v0.2.2/go.mod h1:Wf0ZMf4jdyQYSaSmNyFsqfQbngFA/cM9mpJBZ63Qlzs=
|
||||
github.com/wii-tools/arclib v1.0.0 h1:OAmbL3NDUmlR0wa1VpJhxnKiIRFZz1CC40lTVPUm8Ms=
|
||||
github.com/wii-tools/arclib v1.0.0/go.mod h1:uXFan/NSXoQ2pOVPN4ugZ4nJX7esBnjB1QUgVrEzK/4=
|
||||
github.com/wii-tools/powerpc v0.0.0-20220411041712-104089eba964 h1:/ZeMBIoblxzyhKHQJncvBZaxqi6RZz4rm4QvL0QiguA=
|
||||
github.com/wii-tools/powerpc v0.0.0-20220411041712-104089eba964/go.mod h1:bt/52tMfh1hmEXwFh1i1AOEMNHoe0jSXkcRunOSdFkc=
|
||||
github.com/wii-tools/powerpc v0.0.0-20220518173947-5e34f2388e0d h1:xz6oUpu5th8BmMoxUSIAksujOT6SLrqm3CWxDqA78Mg=
|
||||
github.com/wii-tools/powerpc v0.0.0-20220518173947-5e34f2388e0d/go.mod h1:bt/52tMfh1hmEXwFh1i1AOEMNHoe0jSXkcRunOSdFkc=
|
||||
github.com/wii-tools/wadlib v0.3.1 h1:g0Szzof/YsBLghP+JpoVzT/6M6jpl+AH9PHiUuG3cd8=
|
||||
github.com/wii-tools/wadlib v0.3.1/go.mod h1:GK+f2POk+rVu1p4xqLSb4ll1SKKbfOO6ZAB+oPLV3uQ=
|
||||
|
@ -15,7 +15,7 @@ var NegateECTitle = PatchSet{
|
||||
// Generic function prolog
|
||||
Before: Instructions{
|
||||
STWU(R1, R1, 0xffe0),
|
||||
MFSPR(),
|
||||
MFSPR(R0, LR),
|
||||
}.Bytes(),
|
||||
|
||||
// Immediately return true
|
||||
@ -30,7 +30,7 @@ var NegateECTitle = PatchSet{
|
||||
|
||||
Before: Instructions{
|
||||
STWU(R1, R1, 0xfff0),
|
||||
MFSPR(),
|
||||
MFSPR(R0, LR),
|
||||
}.Bytes(),
|
||||
After: Instructions{
|
||||
LI(R3, 1),
|
||||
@ -42,7 +42,7 @@ var NegateECTitle = PatchSet{
|
||||
AtOffset: 619904,
|
||||
Before: Instructions{
|
||||
STWU(R1, R1, 0xfff0),
|
||||
MFSPR(),
|
||||
MFSPR(R0, LR),
|
||||
}.Bytes(),
|
||||
After: Instructions{
|
||||
LI(R3, 1),
|
||||
@ -54,7 +54,7 @@ var NegateECTitle = PatchSet{
|
||||
AtOffset: 588368,
|
||||
Before: Instructions{
|
||||
STWU(R1, R1, 0xffc0),
|
||||
MFSPR(),
|
||||
MFSPR(R0, LR),
|
||||
}.Bytes(),
|
||||
After: Instructions{
|
||||
LI(R3, 0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user