I'd like to know, are there gecko codes that make certain CPU(s) better/faster than t
#9
(12-09-2024, 07:07 PM)Vega Wrote:
(12-01-2024, 07:08 AM)Sora0Pi Wrote:
(11-28-2024, 01:45 PM)Vega Wrote: Btw you can def edit the CPU speed limit code to enforce it based on slot (have diff limits for every CPU)

How to?

Try this code. It's a modification to B_squo's original code but adding in slot selectability

N = Slot 1 Soft speed limit
P = Slot 2 Soft speed limit
Q = Slot 3
R = Slot 4
.. ..
Z = Slot 11


NTSC-U
C273428C 00000009
48000035 00000000
NNNNNNNN PPPPPPPP
QQQQQQQQ RRRRRRRR
SSSSSSSS TTTTTTTT
UUUUUUUU VVVVVVVV
XXXXXXXX YYYYYYYY
ZZZZZZZZ 7D6802A6
578C103A 7FAC5C2E
D3A3001C 00000000

PAL
C2744158 00000009
48000035 00000000
NNNNNNNN PPPPPPPP
QQQQQQQQ RRRRRRRR
SSSSSSSS TTTTTTTT
UUUUUUUU VVVVVVVV
XXXXXXXX YYYYYYYY
ZZZZZZZZ 7D6802A6
578C103A 7FAC5C2E
D3A3001C 00000000

NTSC-J
C27437C4 00000009
48000035 00000000
NNNNNNNN PPPPPPPP
QQQQQQQQ RRRRRRRR
SSSSSSSS TTTTTTTT
UUUUUUUU VVVVVVVV
XXXXXXXX YYYYYYYY
ZZZZZZZZ 7D6802A6
578C103A 7FAC5C2E
D3A3001C 00000000

NTSC-K
C2732518 00000009
48000035 00000000
NNNNNNNN PPPPPPPP
QQQQQQQQ RRRRRRRR
SSSSSSSS TTTTTTTT
UUUUUUUU VVVVVVVV
XXXXXXXX YYYYYYYY
ZZZZZZZZ 7D6802A6
578C103A 7FAC5C2E
D3A3001C 00000000

Code creator: B_squo
Code credits: Vega (added in Slot selectability)

Code:
#Address Ports (Original is PAL)
#NTSC-U 8073428C
#PALĀ  80744158
#NTSC-J 807437C4
#NTSC-K 80732518

#Create Lookup Table
bl soft_speed_limit_table

#CPU Soft Speed Limit Table
#Dummy/example values used, adjust this to what you want before assembling
.zero 4 #Need filler for slot 0 which won't be used
.float 120.0 #Speed for slot 1
.float 100.5 #Speed for slot 2
.float 117.4 #Speed for slot 3... etc etc
.float 66.6
.float 87.0
.float 156.6
.float 200.0
.float 45.6
.float 179.9
.float 126.4
.float 220.1

#Place Table addr into r11
soft_speed_limit_table:
mflr r11

#Multiply Slot by 4
slwi r12, r28, 2

#Grab the CPU's assigned limit
lfsx f29, r12, r11

#Write the speed limit now, Original Instruction
stfs f29, 0x001C (r3)
This is good! What if I wanted to only do one or two instead of all 12, do I remove certain lines then?
Reply


Messages In This Thread
RE: I'd like to know, are there gecko codes that make certain CPU(s) better/faster than t - by Sora0Pi - 12-10-2024, 07:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)