CPU bot[Dea]
#7
(06-03-2024, 02:28 AM)Vega Wrote: Frankenstein'd this up really quick, try this out. untested. In PAL, too lazy to port.

X = slot that code effects, make sure both X values match

PAL
C252F538 00000004
2C1A000X 801E0018
40A20010 2C000000
40820008 38000001
60000000 00000000
C272625C 00000002
5460063E 5464063E
60000000 00000000
C272625C 00000002
2C04000X 41820008
5403D97E 00000000

Code:
#PAL

#8052F538
#r26 always = slot
cmpwi r26, 0
lwz r0, 0x0018 (r30) #OG instruction, 0 = Human? 1 = CPU? 3 = idk?
bne+ end
cmpwi r0, 0 #Just incase r0 is 3, we don't wanna change 3 to 1 for w/e reason???
bne- end
li r0, 1 #Force to CPU?
end:

=============

#8072625C
#Original Instruction
#Slot in r3, extract byte and place in r0
rlwinm r0, r3, 0, 24, 31

#Also Save Slot in r4 (safe, preserved til next ASM code)
rlwinm r4, r3, 0, 24, 31

=============

#8072627C
#Appears that r3 is suppose to return some sort of bool? Idk
#Check slot (r4)
cmpwi r4, 0
beq- 0x8 #if eq, go to end

#Original instruction, why mask bits 5 thru 31?
rlwinm r3, r0, 27, 5, 31

I don't have the PAL version of the game, how would I go about getting it / porting this code to NTSC-U? Sorry for the inconvenience.
Reply


Messages In This Thread
CPU bot[Dea] - by Dea00 - 09-15-2021, 09:45 AM
RE: CPU bot[Dea] - by Yuri Bacon - 09-16-2021, 05:28 AM
RE: CPU bot[Dea] - by Vega - 09-16-2021, 09:36 PM
RE: CPU bot[Dea] - by AGES - 07-09-2022, 10:56 PM
RE: CPU bot[Dea] - by emeraldvixen - 06-02-2024, 04:53 AM
RE: CPU bot[Dea] - by Vega - 06-03-2024, 02:28 AM
RE: CPU bot[Dea] - by emeraldvixen - 06-03-2024, 02:55 AM
RE: CPU bot[Dea] - by emeraldvixen - 06-03-2024, 03:13 AM
RE: CPU bot[Dea] - by AGES - 06-03-2024, 07:38 AM
RE: CPU bot[Dea] - by Vega - 06-03-2024, 01:17 PM
RE: CPU bot[Dea] - by emeraldvixen - 06-03-2024, 07:14 PM
RE: CPU bot[Dea] - by emeraldvixen - 06-03-2024, 08:47 PM
RE: CPU bot[Dea] - by emeraldvixen - 06-03-2024, 09:00 PM
RE: CPU bot[Dea] - by Vega - 06-04-2024, 12:19 AM
RE: CPU bot[Dea] - by emeraldvixen - 06-04-2024, 01:26 AM
RE: CPU bot[Dea] - by Vega - 06-04-2024, 02:27 AM
RE: CPU bot[Dea] - by Zeraora - 07-03-2024, 02:17 AM
RE: CPU bot[Dea] - by emeraldvixen - 07-03-2024, 05:31 AM
RE: CPU bot[Dea] - by Zeraora - 07-03-2024, 05:23 PM

Forum Jump:


Users browsing this thread: 9 Guest(s)