Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.5 KiB

6 years ago
  1. # Super Mario 64 (J) disassembly and split file
  2. # generated by n64split v0.4a - N64 ROM splitter
  3. # assembler directives
  4. .set noat # allow manual use of $at
  5. .set noreorder # don't insert nops after branches
  6. .set gp=64
  7. .include "macros.inc"
  8. .section .text, "ax"
  9. # TODO: replace 2CEE0 with __bss1size
  10. glabel EntryPoint
  11. /* 001000 80246000 3C088034 */ lui $t0, %hi(_mainSegmentNoloadStart) # $t0, 0x8034
  12. /* 001004 80246004 3C090002 */ lui $t1, (0x0002CEE0 >> 16) # lui $t1, 2
  13. /* 001008 80246008 25089210 */ addiu $t0, %lo(_mainSegmentNoloadStart) # addiu $t0, $t0, -0x6df0
  14. /* 00100C 8024600C 3529CEE0 */ ori $t1, (0x0002CEE0 & 0xFFFF) # ori $t1, $t1, 0xcee0
  15. .L80246010:
  16. /* 001010 80246010 2129FFF8 */ addi $t1, $t1, -8
  17. /* 001014 80246014 AD000000 */ sw $zero, ($t0)
  18. /* 001018 80246018 AD000004 */ sw $zero, 4($t0)
  19. /* 00101C 8024601C 1520FFFC */ bnez $t1, .L80246010
  20. /* 001020 80246020 21080008 */ addi $t0, $t0, 8
  21. /* 001024 80246024 3C0A8024 */ lui $t2, %hi(Main) # $t2, 0x8024
  22. /* 001028 80246028 3C1D8020 */ lui $sp, %hi(gIdleThreadStack) # $sp, 0x8020
  23. /* 00102C 8024602C 254A6DC4 */ addiu $t2, %lo(Main) # addiu $t2, $t2, 0x6dc4
  24. /* 001030 80246030 01400008 */ jr $t2
  25. /* 001034 80246034 27BD0A00 */ addiu $sp, %lo(gIdleThreadStack) # addiu $sp, $sp, 0xa00
  26. /* 001038 80246038 00000000 */ nop
  27. /* 00103C 8024603C 00000000 */ nop
  28. /* 001040 80246040 00000000 */ nop
  29. /* 001044 80246044 00000000 */ nop
  30. /* 001048 80246048 00000000 */ nop
  31. /* 00104C 8024604C 00000000 */ nop