Does anyone know what the code below is accomplishing? I know that C0000000 00000004 indicates that the next four lines of instructions (ASM) are to be executed. However, I can't get asmwiird to decode lines 2-4 into ASM. Any help is greatly appreciated.
C0000000 00000004
3D600000 3D80808A
398C3641 616B0001
916C101F 4E800020
4E800020 00000000
Quote from: live2play on February 26, 2012, 02:57:48 AM
Does anyone know what the code below is accomplishing? -snip-
lis r11,0
lis r12,-32630
addi r12,r12,13889
ori r11,r11,1
stw r11,4127(r12)
blr
blr- why 2 blr's?
R12 = 808A0000+3641=808A3641
R11 = 00000001
store r11 to r12 +offset 101F
so write 1 to 808A4660
technically the code would be the same as
048A4660 00000001
edit: btw the asmwiird I'm using doesn't decode the C0 codetype either but just changing C0 to C2 in asmwiird allows it to decode it, just don't forget to change it back before applying.lol
PyiiASMH append always blr's by C0 ^^
Someone was thinking too much XD.
The second blr is because "The instructions MUST end with with a blr", so the dude probably thought it had to end with 4E800020 00000000 like how C2 needs the 00s at the end. Again, too much thinking. The code could've been a little more tighter too(besides the 04 which would be best).
C0000000 00000002
li r11,1
lis r12, 0xffff808A
stw r11, 0x4660(r12)
blr
I guess whoever's code that is can learn from this maybe?
Quote from: Stuff on February 26, 2012, 02:46:28 PMI guess whoever's code that is can learn from this maybe?
this was made on purpoise and not because it can be shorter. ;)
What was the reason for the double blr?
Quote from: live2play on February 28, 2012, 03:22:02 PM
What was the reason for the double blr?
this probably was just a fail :D
It´s not my code though but I´m having a guess whose it was xD
If you know, please send me the name in a PM.
hmm. Well how come there weren't any credits in the code?
Quote from: Stuff on February 28, 2012, 06:55:26 PM
hmm. Well how come there weren't any credits in the code?
It is a snippet of a much larger code.