Coding Questions and other Quandaries
Nevermind. I figured it out:

loc_0x0:
lis r11, 0x8000
lhz r12, 946(r11)
lhz r5, 944(r11)
addi r12, r12, 0x1
cmpwi r12, 0x38
bne+ store_rotation
li r12, 0x0
cmpwi r5, 0x11
beq- skip_twelve

addi r5, r5, 0x1
cmpwi r5, 0x14
blt+ store_char
li r5, 0x0

store_char:
sth r5, 944(r11)

store_rotation:
sth r12, 946(r11)
blr

skip_twelve:
addi r5, r5, 0x2
sth r5, 944(r11)
sth r12, 946(r11)
blr
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Hackwiz - 05-07-2023, 03:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)