11-09-2019, 02:23 AM
Any update on this? Btw you can switch the branches a bit on this by placing the default instruction before the branches
lwz r5, 0x0004 (r4)
lis r12, 0x8034
ori r12, r12, 0x3E80
lhz r12, 0 (r12)
cmpwi r12, 0x0082
beq- force_in
cmpwi r12, 0x0081
bne- end
li r5, 1 #Outside Drift
b end
force_in:
li r5, 2 #Inside Drift
end:
lwz r5, 0x0004 (r4)
lis r12, 0x8034
ori r12, r12, 0x3E80
lhz r12, 0 (r12)
cmpwi r12, 0x0082
beq- force_in
cmpwi r12, 0x0081
bne- end
li r5, 1 #Outside Drift
b end
force_in:
li r5, 2 #Inside Drift
end: