Full Input Range (GCN controller) [stebler]
#1
Full Input Range (GCN controller) [stebler]

You may want to pair this code with the Change Saved Controller code set to wii wheel.

Code credits: _tZ for the clamping function address.

PAL:
061ae678 00000044
38600001 2c1f0000
40800008 3860ffff
7c9f19d6 7c002000
40800008 7fe301d6
38600001 2c1e0000
40800008 3860ffff
7c9e19d6 7c002000
40800008 7fc301d6
4800001c 00000000

NTSC-U:
061ae5d8 00000044
38600001 2c1f0000
40800008 3860ffff
7c9f19d6 7c002000
40800008 7fe301d6
38600001 2c1e0000
40800008 3860ffff
7c9e19d6 7c002000
40800008 7fc301d6
4800001c 00000000

NTSC-J:
061ae598 00000044
38600001 2c1f0000
40800008 3860ffff
7c9f19d6 7c002000
40800008 7fe301d6
38600001 2c1e0000
40800008 3860ffff
7c9e19d6 7c002000
40800008 7fc301d6
4800001c 00000000

NTSC-K:
061ae9d4 00000044
38600001 2c1f0000
40800008 3860ffff
7c9f19d6 7c002000
40800008 7fe301d6
38600001 2c1e0000
40800008 3860ffff
7c9e19d6 7c002000
40800008 7fc301d6
4800001c 00000000

Source code:
Code:
# replace at 801ae678 (PAL)
# replace at 801ae5d8 (NTSC-U)
# replace at 801ae598 (NTSC-J)
# replace at 801ae9d4 (NTSC-K)

li r3, 1
cmpwi r31, 0
bge x_positive
li r3, -1
x_positive:
mullw r4, r31, r3
cmpw r0, r4
bge x_in_square
mullw r31, r3, r0
x_in_square:

li r3, 1
cmpwi r30, 0
bge y_positive
li r3, -1
y_positive:
mullw r4, r30, r3
cmpw r0, r4
bge y_in_square
mullw r30, r3, r0
y_in_square:

b 0x1c
Reply


Messages In This Thread
Full Input Range (GCN controller) [stebler] - by stebler - 01-04-2021, 11:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)