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
490 B

6 years ago
  1. .set noat # allow manual use of $at
  2. .set noreorder # don't insert nops after branches
  3. .set gp=64
  4. .include "macros.inc"
  5. .section .text, "ax"
  6. glabel osMapTLBRdb
  7. mfc0 $t0, $10
  8. li $t1, 31
  9. mtc0 $t1, $0
  10. mtc0 $zero, $5
  11. li $t2, 23
  12. lui $t1, 0xc000
  13. mtc0 $t1, $10
  14. lui $t1, 0x8000
  15. srl $t3, $t1, 6
  16. or $t3, $t3, $t2
  17. mtc0 $t3, $2
  18. li $t1, 1
  19. mtc0 $t1, $3
  20. nop
  21. tlbwi
  22. nop
  23. nop
  24. nop
  25. nop
  26. mtc0 $t0, $10
  27. jr $ra
  28. nop
  29. nop
  30. nop