Difference between revisions of "Find Text ID's Location"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 0014ce78: 20090000 addi r9,r0,0x0000 0014ce7c: 200a00fe addi r10,r0,0x00fe 0014ce80: 90880000 lbu r8,0x0000(r4) load first text byte 0014ce84...") |
|||
Line 1: | Line 1: | ||
<font face='Courier New'> | <font face='Courier New'> | ||
− | 0014ce78: 20090000 addi r9,r0,0x0000 | + | 0014ce78: 20090000 addi r9,r0,0x0000 String Counter = 0 |
− | 0014ce7c: 200a00fe addi r10,r0,0x00fe | + | 0014ce7c: 200a00fe addi r10,r0,0x00fe r10 = 0xFE |
− | 0014ce80: 90880000 lbu r8,0x0000(r4) | + | 0014ce80: 90880000 lbu r8,0x0000(r4) Load Text Byte |
− | 0014ce84: 10a90008 beq r5,r9,0x0014cea8 | + | 0014ce84: 10a90008 beq r5,r9,0x0014cea8 Branch if Text ID = String Counter |
0014ce88: 00000000 nop | 0014ce88: 00000000 nop | ||
0014ce8c: 310800fe andi r8,r8,0x00fe | 0014ce8c: 310800fe andi r8,r8,0x00fe | ||
− | 0014ce90: 150a0002 bne r8,r10,0x0014ce9c | + | 0014ce90: 150a0002 bne r8,r10,0x0014ce9c Branch if Text Byte != FE (end of string) |
0014ce94: 00000000 nop | 0014ce94: 00000000 nop | ||
− | 0014ce98: 21290001 addi r9,r9,0x0001 | + | 0014ce98: 21290001 addi r9,r9,0x0001 String Counter ++ |
− | 0014ce9c: 20840001 addi r4,r4,0x0001 | + | 0014ce9c: 20840001 addi r4,r4,0x0001 Text Pointer ++ |
− | 0014cea0: 0401fff7 bgez r0,0x0014ce80 | + | 0014cea0: 0401fff7 bgez r0,0x0014ce80 Unconditional Branch |
0014cea4: 00000000 nop | 0014cea4: 00000000 nop | ||
− | 0014cea8: 00041020 add r2,r0,r4 | + | 0014cea8: 00041020 add r2,r0,r4 r2 = Text Pointer (Text ID's Location) |
0014ceac: 03e00008 jr r31 | 0014ceac: 03e00008 jr r31 | ||
0014ceb0: 00000000 nop | 0014ceb0: 00000000 nop | ||
</font> | </font> |
Latest revision as of 14:20, 11 June 2016
0014ce78: 20090000 addi r9,r0,0x0000 String Counter = 0 0014ce7c: 200a00fe addi r10,r0,0x00fe r10 = 0xFE 0014ce80: 90880000 lbu r8,0x0000(r4) Load Text Byte 0014ce84: 10a90008 beq r5,r9,0x0014cea8 Branch if Text ID = String Counter 0014ce88: 00000000 nop 0014ce8c: 310800fe andi r8,r8,0x00fe 0014ce90: 150a0002 bne r8,r10,0x0014ce9c Branch if Text Byte != FE (end of string) 0014ce94: 00000000 nop 0014ce98: 21290001 addi r9,r9,0x0001 String Counter ++ 0014ce9c: 20840001 addi r4,r4,0x0001 Text Pointer ++ 0014cea0: 0401fff7 bgez r0,0x0014ce80 Unconditional Branch 0014cea4: 00000000 nop 0014cea8: 00041020 add r2,r0,r4 r2 = Text Pointer (Text ID's Location) 0014ceac: 03e00008 jr r31 0014ceb0: 00000000 nop