Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mainmemory.write_u32_be(0x60B0DC, 0x081FFF80) -- J 0x01FFF80 | Redirects to new section of code in free memory 0x7FFE00 (0x1FFF80 * 4)
- mainmemory.write_u32_be(0x7FFE00, 0x3C138080) -- LUI $s3 0x8080 | $s3 = 0x807F
- mainmemory.write_u32_be(0x7FFE04, 0x8E73D580) -- LW $s3 0xD580 $s3 | $s3 = mainmemory.read_u32_be($s3 + 0xD580)
- mainmemory.write_u32_be(0x7FFE08, 0x12600029) -- BEQ $s3 $zero 0x0029 | if $s3 == $zero, branch 0x0029 (If player object doesn't exist, jump 41 instructions to 0x7FFEAC)
- mainmemory.write_u32_be(0x7FFE0C, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE10, 0x8E740104) -- LW $s4 0x0104 $s3 | $s4 = mainmemory.read_u32_be($s3 + 0x0104)
- mainmemory.write_u32_be(0x7FFE14, 0x12800026) -- BEQ $s4 $zero 0x0026 | if $s4 == $zero, branch 0x0026 (If camera object doesn't exist, jump 38 instructions to 0x7FFEAC)
- mainmemory.write_u32_be(0x7FFE18, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE1C, 0x8E940174) -- LW $s4 0x0174 $s4 | $s4 = mainmemory.read_u32_be($s4 + 0x0174)
- mainmemory.write_u32_be(0x7FFE20, 0x12800023) -- BEQ $s4 $zero 0x0023 | if $s4 == $zero, branch 0x0023 (If some camera property pointer is null, jump 35 instructions to 0x7FFEAC)
- mainmemory.write_u32_be(0x7FFE24, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE28, 0x929400EF) -- LBU $s4 0x00EF $s4 | $s4 = mainmemory.readbyte($s4 + 0x00EF)
- mainmemory.write_u32_be(0x7FFE2C, 0x16800020) -- BNE $s4 $zero 0x0020 | if $s4 == $zero, branch 0x0020 (If not in first person, jump 32 instructions to 0x7FFEAC)
- mainmemory.write_u32_be(0x7FFE30, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE34, 0x8310CD49) -- LB $s0 0xCD49 $t8 | $s0 = mainmemory.read_s8($t8 + 0xCD49) (L Input is YY > XXYYXXXX)
- mainmemory.write_u32_be(0x7FFE38, 0x24110020) -- ADDIU $s1 $zero 0x0020 | $s1 = $zero + 0x0020 (L input value)
- mainmemory.write_u32_be(0x7FFE3C, 0x24120002) -- ADDIU $s2 $zero 0x0002 | $s2 = $zero + 0x0002 (Donkey Kong)
- mainmemory.write_u32_be(0x7FFE40, 0x12110014) -- BEQ $s0 $s1 0x0014 | if $s0 == $s1, branch 0x0014 (If input value matches, jump 20 instructions to 0x7FFE90)
- mainmemory.write_u32_be(0x7FFE44, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE48, 0x8310CD48) -- LB $s0 0xCD48 $t8 | $s0 = mainmemory.read_s8($t8 + 0xCD48) (D Input is YY > YYXXXXXX)
- mainmemory.write_u32_be(0x7FFE4C, 0x24110008) -- ADDIU $s1 $zero 0x0008 | $s1 = $zero + 0x0008 (DUp input value)
- mainmemory.write_u32_be(0x7FFE50, 0x24120003) -- ADDIU $s2 $zero 0x0003 | $s2 = $zero + 0x0003 (Diddy Kong)
- mainmemory.write_u32_be(0x7FFE54, 0x1211000F) -- BEQ $s0 $s1 0x000F | if $s0 == $s1, branch 0x000F (If input value matches, jump 15 instructions to 0x7FFE90)
- mainmemory.write_u32_be(0x7FFE58, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE5C, 0x24110004) -- ADDIU $s1 $zero 0x0004 | $s1 = $zero + 0x0004 (DDown input value)
- mainmemory.write_u32_be(0x7FFE60, 0x24120004) -- ADDIU $s2 $zero 0x0004 | $s2 = $zero + 0x0004 (Lanky Kong)
- mainmemory.write_u32_be(0x7FFE64, 0x1211000B) -- BEQ $s0 $s1 0x000B | if $s0 == $s1, branch 0x000B (If input value matches, jump 11 instructions to 0x7FFE90)
- mainmemory.write_u32_be(0x7FFE68, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE6C, 0x24110002) -- ADDIU $s1 $zero 0x0002 | $s1 = $zero + 0x0002 (DLeft input value)
- mainmemory.write_u32_be(0x7FFE70, 0x24120005) -- ADDIU $s2 $zero 0x0005 | $s2 = $zero + 0x0005 (Tiny Kong)
- mainmemory.write_u32_be(0x7FFE74, 0x12110007) -- BEQ $s0 $s1 0x0007 | if $s0 == $S1, branch 0x0007 (If input value matches, jump 7 instructions to 0x7FFE90)
- mainmemory.write_u32_be(0x7FFE78, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE7C, 0x24110001) -- ADDIU $s1 $zero 0x0001 | $s1 = $zero + 0x0001 (DRight input value)
- mainmemory.write_u32_be(0x7FFE80, 0x24120006) -- ADDIU $s2 $zero 0x0006 | $s2 = $zero + 0x0006 (Chunky Kong)
- mainmemory.write_u32_be(0x7FFE84, 0x12110003) -- BEQ $s0 $s1 0x0003 | if $s0 == $s1, branch 0x0003 (If input value matches, jump 3 instructions to 0x7FFE90)
- mainmemory.write_u32_be(0x7FFE88, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE8C, 0x10000008) -- BEQ $zero $zero 0x0008 | if $zero == $zero, branch 0x0008 (If no input matches, jump 8 instructions to 0x7FFEAC)
- mainmemory.write_u32_be(0x7FFE90, 0x00000000) --
- mainmemory.write_u32_be(0x7FFE94, 0xA27201EF) -- SB $s2 0x01EF $s3 | mainmemory.writebyte($s3 + 0x01EF,$s2) (Write kong value to internal address player + 0x36F)
- mainmemory.write_u32_be(0x7FFE98, 0x3C108080) -- LUI $s0 0x8080 | $s0 = 0x807F
- mainmemory.write_u32_be(0x7FFE9C, 0x8E10C924) -- LW $s0 0xC924 $s0 | $s0 = mainmemory.read_u32_be($s0 + 0xC924)
- mainmemory.write_u32_be(0x7FFEA0, 0x12000003) -- BEQ $s0 $zero 0x0003 | if $s0 == $zero, branch 0x0003 (if condition, jump 3 instructions to 0x7FFEAC)
- mainmemory.write_u32_be(0x7FFEA4, 0x00000000) --
- mainmemory.write_u32_be(0x7FFEA8, 0x2411003B) -- ADDIU $s1 $zero 0x003B | $s1 = $zero + 0x003B
- mainmemory.write_u32_be(0x7FFEAC, 0xA611029C) -- SH $s1 0x029C $s0 | mainmemory.write_u16_be($s0 + 0x029C,$s1) (Forces character change)
- mainmemory.write_u32_be(0x7FFEB0, 0x9718CD48) -- LHU $t8 0xCD48 $t8 | Performs action which was originally in the code slot
- mainmemory.write_u32_be(0x7FFEB4, 0x08182C39) -- J 0x0182C39 | Jumps back to next instruction in intended game code 60B0E4 (0x182C39 * 4)
- mainmemory.write_u32_be(0x7FFEB8, 0x00000000) --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement