Need help with converting Button activators.

Started by Arudo, July 04, 2011, 11:15:39 PM

Previous topic - Next topic

dcx2


Arudo

The C2 one did not react at all (strangely) and the long version one can only make time go backward.
-Crazy Hacker Hates You All (definitely)-

ノಠ益ಠ)ノ彡â"»â"â"»

Do NOT PM me about Code Requests

Pro-tip: Hit the Applaud Button

Oh? Failed to read the rules? You're already dead.

Patedj

#17
Is this what you guys are doing?

mr r27,r3 #I don't know why this is happening but anyways(maybe it's the address' instruction). Move volatile register r3 to non-volatile r27
lis r11,-32680 #is this the remote control?
lwz r11,-14840(r11) #load the remotes value?
cmpwi r11,8193 #compare remote with button??
bne- 0x0C #branch if not equal to
subi r28,r28,1 #subtract immdediate value by 1 if equal
b 0x10 #branch to ??? this is weird. could it be x14 instead?
cmpwi r11,8194 #compare remote value to this
bne- 0x08 #branch if not equal
addi r28,r28,1 #if equal add immediate value by 1
nop

if so I would like to do this

lis r12, 0x8057 #classic remote address
ori r12, ori 0xC66A (if not r12 then r11) #classic remote address
lwz r12,0(r12) #classic remote address value  
cmpw r12,8200 #compare value with R+right
beq- ADD #branch to add
cpmw r12,202 #compare value with R+lef
beq- SUB #branch to sub
b END #if not branch to end

ADD:
addi r28,r28,1
b END

SUB:
subi r28,r28,1
b END

END:
nop # stop time (if the original value is placed here ie: lwz r28, 0(r27), the original value will then continue to count normally. Perhaps mr r27,r3 is necessary and could be placed here instead of the beginning.

You can pm me, I've got time for your troubles.

Arudo

I found a way around it, I'll just stick with brute-force poking addresses.
-Crazy Hacker Hates You All (definitely)-

ノಠ益ಠ)ノ彡â"»â"â"»

Do NOT PM me about Code Requests

Pro-tip: Hit the Applaud Button

Oh? Failed to read the rules? You're already dead.