1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| .text:0000000120001B00 dli $v0, 0x120000000 # Doubleword Load Immediate .text:0000000120001B04 daddiu $a1, $v0, (asc_1200021E0 - 0x120000000) # "\r\n\r\n" .text:0000000120001B08 ld $a0, 0x10C0+haystack($fp) # haystack .text:0000000120001B0C dla $v0, strstr # Load 64-bit address .text:0000000120001B10 move $t9, $v0 .text:0000000120001B14 jalr $t9 ; strstr # Jump And Link Register .text:0000000120001B18 nop .text:0000000120001B1C sd $v0, 0x10C0+var_10A0($fp) # Store Doubleword .text:0000000120001B20 ld $v0, 0x10C0+var_10A0($fp) # Load Doubleword .text:0000000120001B24 beqz $v0, loc_120001C70 # Branch on Zero .text:0000000120001B28 nop .text:0000000120001B2C ld $v0, 0x10C0+var_10A0($fp) # Load Doubleword .text:0000000120001B30 daddiu $v0, 4 # Doubleword Add Immediate Unsigned .text:0000000120001B34 sd $v0, 0x10C0+var_10A0($fp) # Store Doubleword .text:0000000120001B38 ld $v0, 0x10C0+var_10A0($fp) # Load Doubleword .text:0000000120001B3C sd $v0, 0x10C0+var_1070($fp) # Store Doubleword .text:0000000120001B40 lw $v1, 0x10C0+var_10A8($fp) # Load Word .text:0000000120001B44 daddiu $a0, $fp, 0x10C0+var_1038 # Doubleword Add Immediate Unsigned .text:0000000120001B48 ld $v0, 0x10C0+var_10A0($fp) # Load Doubleword .text:0000000120001B4C dsubu $v0, $a0 # Doubleword Subtract Unsigned .text:0000000120001B50 sll $v0, 0 # Shift Left Logical .text:0000000120001B54 subu $v0, $v1, $v0 # Subtract Unsigned .text:0000000120001B58 move $v1, $v0 .text:0000000120001B5C lw $v0, 0x10C0+var_1068($fp) # Load Word .text:0000000120001B60 addu $v0, $v1, $v0 # Add Unsigned .text:0000000120001B64 sw $v0, 0x10C0+var_10B8($fp) # Store Word .text:0000000120001B68 daddiu $v1, $fp, 0x10C0+var_1038 # Doubleword Add Immediate Unsigned .text:0000000120001B6C lw $v0, 0x10C0+var_10A8($fp) # Load Word .text:0000000120001B70 daddu $v0, $v1, $v0 # Doubleword Add Unsigned .text:0000000120001B74 sd $v0, 0x10C0+buf($fp) # Store Doubleword .text:0000000120001B78 b loc_120001BD0 # Branch Always .text:0000000120001B7C nop .text:0000000120001B80 # --------------------------------------------------------------------------- .text:0000000120001B80 .text:0000000120001B80 loc_120001B80: # CODE XREF: main+4A0↓j .text:0000000120001B80 lw $v0, 0x10C0+var_10B8($fp) # Load Word .text:0000000120001B84 move $a2, $v0 # nbytes .text:0000000120001B88 ld $a1, 0x10C0+buf($fp) # buf .text:0000000120001B8C move $a0, $zero # fd .text:0000000120001B90 dla $v0, read # Load 64-bit address .text:0000000120001B94 move $t9, $v0 .text:0000000120001B98 jalr $t9 ; read # Jump And Link Register .text:0000000120001B9C nop .text:0000000120001BA0 sw $v0, 0x10C0+var_1094($fp) # Store Word .text:0000000120001BA4 lw $v0, 0x10C0+var_1094($fp) # Load Word .text:0000000120001BA8 blez $v0, loc_120001BE4 # Branch on Less Than or Equal to Zero .text:0000000120001BAC nop .text:0000000120001BB0 lw $v0, 0x10C0+var_10B8($fp) # Load Word .text:0000000120001BB4 ld $v1, 0x10C0+buf($fp) # Load Doubleword .text:0000000120001BB8 daddu $v0, $v1, $v0 # Doubleword Add Unsigned .text:0000000120001BBC sd $v0, 0x10C0+buf($fp) # Store Doubleword .text:0000000120001BC0 lw $v1, 0x10C0+var_10B8($fp) # Load Word .text:0000000120001BC4 lw $v0, 0x10C0+var_1094($fp) # Load Word .text:0000000120001BC8 subu $v0, $v1, $v0 # Subtract Unsigned .text:0000000120001BCC sw $v0, 0x10C0+var_10B8($fp) # Store Word .text:0000000120001BD0 .text:0000000120001BD0 loc_120001BD0: # CODE XREF: main+444↑j .text:0000000120001BD0 lw $v0, 0x10C0+var_10B8($fp) # Load Word .text:0000000120001BD4 bnez $v0, loc_120001B80 # Branch on Not Zero .text:0000000120001BD8 nop .text:0000000120001BDC b loc_120001BE8 # Branch Always .text:0000000120001BE0 nop
|