Difference between revisions of "Hold CPU 240"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 000193a4: 27bdfff8 addiu r29,r29,0xfff8 000193a8: 3402000d ori r2,r0,0x000d 000193ac: afa20004 sw r2,0x0004(r29) 000193b0: afa00000 sw r0,0x000...")
 
m
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
   
+
  definitely not written by a compiler
  000193a4: 27bdfff8 addiu r29,r29,0xfff8
+
 
 +
  000193a4: 27bdfff8 addiu r29,r29,0xfff8             # stack -8?
 
  000193a8: 3402000d ori r2,r0,0x000d
 
  000193a8: 3402000d ori r2,r0,0x000d
  000193ac: afa20004 sw r2,0x0004(r29)
+
  000193ac: afa20004 sw r2,0x0004(r29)                 # stack.4 = d
  000193b0: afa00000 sw r0,0x0000(r29)
+
  000193b0: afa00000 sw r0,0x0000(r29)                 # stack.0 = 0
 
  000193b4: 080064f9 j 0x000193e4
 
  000193b4: 080064f9 j 0x000193e4
 
  000193b8: 00000000 nop
 
  000193b8: 00000000 nop
  000193bc: 8fa30004 lw r3,0x0004(r29)
+
  000193bc: 8fa30004 lw r3,0x0004(r29)                # stack.4 (rate?)
 
  000193c0: 00000000 nop
 
  000193c0: 00000000 nop
  000193c4: 00031040 sll r2,r3,0x01
+
  000193c4: 00031040 sll r2,r3,0x01                  
  000193c8: 00431021 addu r2,r2,r3
+
  000193c8: 00431021 addu r2,r2,r3                     # stack.4 * 3
  000193cc: afa20004 sw r2,0x0004(r29)
+
  000193cc: afa20004 sw r2,0x0004(r29)                 # achieves nothing
  000193d0: 8fa20000 lw r2,0x0000(r29)
+
  000193d0: 8fa20000 lw r2,0x0000(r29)                 # stack.0
 
  000193d4: 00000000 nop
 
  000193d4: 00000000 nop
  000193d8: 24420001 addiu r2,r2,0x0001
+
  000193d8: 24420001 addiu r2,r2,0x0001               # stack.0 ++
 
  000193dc: afa20000 sw r2,0x0000(r29)
 
  000193dc: afa20000 sw r2,0x0000(r29)
 
  000193e0: 8fa20000 lw r2,0x0000(r29)
 
  000193e0: 8fa20000 lw r2,0x0000(r29)
  000193e4: 8fa20000 lw r2,0x0000(r29)
+
  000193e4: 8fa20000 lw r2,0x0000(r29)                 # load stack.0
 
  000193e8: 00000000 nop
 
  000193e8: 00000000 nop
 
  000193ec: 284200f0 slti r2,r2,0x00f0
 
  000193ec: 284200f0 slti r2,r2,0x00f0
  000193f0: 1440fff2 bne r2,r0,0x000193bc
+
  000193f0: 1440fff2 bne r2,r0,0x000193bc             # loop 0xf0 times
 
  000193f4: 00000000 nop
 
  000193f4: 00000000 nop
 
  000193f8: 27bd0008 addiu r29,r29,0x0008
 
  000193f8: 27bd0008 addiu r29,r29,0x0008

Revision as of 03:51, 22 January 2025

definitely not written by a compiler
000193a4: 27bdfff8 addiu r29,r29,0xfff8              # stack -8?
000193a8: 3402000d ori r2,r0,0x000d
000193ac: afa20004 sw r2,0x0004(r29)                 # stack.4 = d
000193b0: afa00000 sw r0,0x0000(r29)                 # stack.0 = 0
000193b4: 080064f9 j 0x000193e4
000193b8: 00000000 nop
000193bc: 8fa30004 lw r3,0x0004(r29)                 # stack.4 (rate?)
000193c0: 00000000 nop
000193c4: 00031040 sll r2,r3,0x01                    
000193c8: 00431021 addu r2,r2,r3                     # stack.4 * 3
000193cc: afa20004 sw r2,0x0004(r29)                 # achieves nothing
000193d0: 8fa20000 lw r2,0x0000(r29)                 # stack.0
000193d4: 00000000 nop
000193d8: 24420001 addiu r2,r2,0x0001                # stack.0 ++
000193dc: afa20000 sw r2,0x0000(r29)
000193e0: 8fa20000 lw r2,0x0000(r29)
000193e4: 8fa20000 lw r2,0x0000(r29)                 # load stack.0
000193e8: 00000000 nop
000193ec: 284200f0 slti r2,r2,0x00f0
000193f0: 1440fff2 bne r2,r0,0x000193bc              # loop 0xf0 times
000193f4: 00000000 nop
000193f8: 27bd0008 addiu r29,r29,0x0008
000193fc: 03e00008 jr r31
00019400: 00000000 nop