Mini Turbo Charge Meter [SwareJonge]
#1
Mini Turbo Charge Meter [SwareJonge]

NOTE: Outdated by Vega's version

Works in Solo TT's only!

This code will read the output value of your MT charge on the millisecond section of your timer. Works for all vehicles. A reading of '270' indicates MT is fully charged ready for boost.

NTSC-U
C25310A0 00000004
3D808000 818C1650
A0AC0100 2C050000
40820008 A0AC00FE
60000000 00000000
C25777DC 00000002
B0BD00FE 3D808000
93AC1650 00000000

PAL
C2535BE8 00000004
3D808000 818C1650
A0AC0100 2C050000
40820008 A0AC00FE
60000000 00000000
C257E040 00000002
B0BD00FE 3D808000
93AC1650 00000000

NTSC-J
C2535568 00000004
3D808000 818C1650
A0AC0100 2C050000
40820008 A0AC00FE
60000000 00000000
C257D9C0 00000002
B0BD00FE 3D808000
93AC1650 00000000

NTSC-K
C2523C40 00000004
3D808000 818C1650
A0AC0100 2C050000
40820008 A0AC00FE
60000000 00000000
C256C098 00000002
B0BD00FE 3D808000
93AC1650 00000000



Source:
(First ASM; Millisecond Modifier)
lis r12, 0x8000 #Set first half address of r12 to 0x8000
lwz r12, 0x1650 (r12) #Load Pointer
lhz r5, 0x100 (r12) #Load the Orange MT value first
cmpwi r5, 0x0 #Compare Orange MT value to zero
bne- skip_blue #If not equal to zero, don't read Blue MT, follow skip_blue branch

lhz r5, 0xFE (r12) #If equal to zero, load Blue MT instead

skip_blue: #Label placed purely for branch offset auto-calculation by compiler

(Second ASM; Store Pointer)
sth r5, 0x00FE (r29) #Default Instruction
lis r12, 0x8000 #Set 1st half address of r12 to 0x8000
stw r29, 0x1650 (r12) #Store pointer to 0x80001650



Code creator: SwareJonge
Code credits: Vega (improvements to Source, added Dual Blue/Orange Reading); mdmwii (address founder for the first ASM)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)