Difference between revisions of "000254cc - 00025520"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 000254cc: 27bdffe0 addiu r29,r29,0xffe0 000254d0: afb00010 sw r16,0x0010(r29) 000254d4: 00808021 addu r16,r4,r0 000254d8: 00a02021 addu r4,r5,r...") |
|||
Line 1: | Line 1: | ||
<font face='Courier New'> | <font face='Courier New'> | ||
− | + | takes 4 inputs: | |
− | 000254cc: 27bdffe0 addiu r29,r29,0xffe0 | + | r4 = Pointer 1 |
+ | r5 = Value 1 (yes/no) | ||
+ | r6 = Value 2 (yes/no) | ||
+ | r7 = value 3 (flag set) | ||
+ | stack + 0x10 = value 4 | ||
+ | |||
+ | 000254cc: 27bdffe0 addiu r29,r29,0xffe0 stack - 0x20 | ||
000254d0: afb00010 sw r16,0x0010(r29) | 000254d0: afb00010 sw r16,0x0010(r29) | ||
− | 000254d4: 00808021 addu r16,r4,r0 | + | 000254d4: 00808021 addu r16,r4,r0 r16 = pointer 1 |
− | 000254d8: 00a02021 addu r4,r5,r0 | + | 000254d8: 00a02021 addu r4,r5,r0 r4 = value 1 |
000254dc: 34020002 ori r2,r0,0x0002 | 000254dc: 34020002 ori r2,r0,0x0002 | ||
− | 000254e0: 00c02821 addu r5,r6,r0 | + | 000254e0: 00c02821 addu r5,r6,r0 r5 = value 2 |
000254e4: afb10014 sw r17,0x0014(r29) | 000254e4: afb10014 sw r17,0x0014(r29) | ||
− | 000254e8: 8fb10030 lw r17,0x0030(r29) | + | 000254e8: 8fb10030 lw r17,0x0030(r29) r17 = Value 4 |
− | 000254ec: 30e6ffff andi r6,r7,0xffff | + | 000254ec: 30e6ffff andi r6,r7,0xffff r6 = value 3 |
000254f0: afbf0018 sw r31,0x0018(r29) | 000254f0: afbf0018 sw r31,0x0018(r29) | ||
000254f4: 0c0095f2 jal 0x000257c8 | 000254f4: 0c0095f2 jal 0x000257c8 | ||
− | 000254f8: a2020003 sb r2,0x0003(r16) | + | 000254f8: a2020003 sb r2,0x0003(r16) store 0x2 in pointer 1 + 0x3 |
− | 000254fc: ae020004 sw r2,0x0004(r16) | + | 000254fc: ae020004 sw r2,0x0004(r16) store return in pointer 1 + 0x4 (0x1e000000 + various) |
00025500: 0c009681 jal 0x00025a04 | 00025500: 0c009681 jal 0x00025a04 | ||
− | 00025504: 02202021 addu r4,r17,r0 | + | 00025504: 02202021 addu r4,r17,r0 r4 = value 4 |
− | 00025508: ae020008 sw r2,0x0008(r16) | + | 00025508: ae020008 sw r2,0x0008(r16) save return there. |
0002550c: 8fbf0018 lw r31,0x0018(r29) | 0002550c: 8fbf0018 lw r31,0x0018(r29) | ||
00025510: 8fb10014 lw r17,0x0014(r29) | 00025510: 8fb10014 lw r17,0x0014(r29) |
Latest revision as of 11:14, 22 February 2022
takes 4 inputs: r4 = Pointer 1 r5 = Value 1 (yes/no) r6 = Value 2 (yes/no) r7 = value 3 (flag set) stack + 0x10 = value 4
000254cc: 27bdffe0 addiu r29,r29,0xffe0 stack - 0x20 000254d0: afb00010 sw r16,0x0010(r29) 000254d4: 00808021 addu r16,r4,r0 r16 = pointer 1 000254d8: 00a02021 addu r4,r5,r0 r4 = value 1 000254dc: 34020002 ori r2,r0,0x0002 000254e0: 00c02821 addu r5,r6,r0 r5 = value 2 000254e4: afb10014 sw r17,0x0014(r29) 000254e8: 8fb10030 lw r17,0x0030(r29) r17 = Value 4 000254ec: 30e6ffff andi r6,r7,0xffff r6 = value 3 000254f0: afbf0018 sw r31,0x0018(r29) 000254f4: 0c0095f2 jal 0x000257c8 000254f8: a2020003 sb r2,0x0003(r16) store 0x2 in pointer 1 + 0x3 000254fc: ae020004 sw r2,0x0004(r16) store return in pointer 1 + 0x4 (0x1e000000 + various) 00025500: 0c009681 jal 0x00025a04 00025504: 02202021 addu r4,r17,r0 r4 = value 4 00025508: ae020008 sw r2,0x0008(r16) save return there. 0002550c: 8fbf0018 lw r31,0x0018(r29) 00025510: 8fb10014 lw r17,0x0014(r29) 00025514: 8fb00010 lw r16,0x0010(r29) 00025518: 27bd0020 addiu r29,r29,0x0020 0002551c: 03e00008 jr r31 00025520: 00000000 nop