-snip-
#5
Hey sponge, finally remembered to take another look at the Rainbow function code (for your request to fix the r14 issue).

I added some quick instructions to prevent r14 from effecting mdmwiis stalkin and future fly... let me know if this works...

Code:
stw r14, -0x4 (sp) #Store r14 to negative stack area

lis r12, 0x8000 #Set vector address
lwz r14, 0x0498 (r12) #Load current r14 for use of this code only, starts as 0

lis r15,-32400
addi r22,r22,1
cmpwi r22,5
blt- 0xA8
cmpwi r18,0
bne- 0x0C
li r20,255
li r18,1
cmpwi r18,1
bne- 0x14
addi r14,r14,1
cmpwi r14,255
bne- 0x08
li r18,2
cmpwi r18,2
bne- 0x14
subi r20,r20,1
cmpwi r20,0
bne- 0x08
li r18,3
cmpwi r18,3
bne- 0x14
addi r17,r17,1
cmpwi r17,255
bne- 0x08
li r18,4
cmpwi r18,4
bne- 0x14
subi r14,r14,1
cmpwi r14,0
bne- 0x08
li r18,5
cmpwi r18,5
bne- 0x14
addi r20,r20,1
cmpwi r20,255
bne- 0x08
li r18,6
cmpwi r18,6
bne- 0x14
subi r17,r17,1
cmpwi r17,0
bne- 0x08
li r18,1
li r22,0
stb r20,0(r15)
stb r14,1(r15)
stb r17,2(r15)
cmpwi r0,0

stw r14, 0x0498 (r12) #Update r14, for this code only

lwz r14, -0x4 (sp) #Retrieve old r14 from negative stack area
Reply


Messages In This Thread
-snip- - by Sponge - 12-03-2019, 11:59 PM
RE: Rainbow Function code - by Vega - 12-04-2019, 01:57 AM
RE: Rainbow Function code - by Sponge - 12-04-2019, 05:46 PM
RE: Rainbow Function code - by Vega - 12-04-2019, 11:47 PM
RE: Rainbow Function code - by Vega - 12-18-2019, 02:31 AM
RE: Rainbow Function code - by Sponge - 12-18-2019, 01:05 PM
RE: Rainbow Function code - by Vega - 12-18-2019, 02:40 PM
RE: Rainbow Function code - by Sponge - 12-18-2019, 03:16 PM
RE: Rainbow Function code - by Vega - 12-18-2019, 04:27 PM
RE: Rainbow Function code - by Sponge - 12-18-2019, 04:52 PM
RE: Rainbow Function code - by Vega - 12-18-2019, 07:48 PM
RE: Rainbow Function code - by Sponge - 12-18-2019, 07:55 PM
RE: Rainbow Function code - by Vega - 12-18-2019, 08:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)