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.

32 lines
480 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 osUnmapTLBAll
  7. mfc0 $t0, $10
  8. li $t1, 31
  9. lui $t2, 0x8000
  10. mtc0 $t2, $10
  11. mtc0 $zero, $2
  12. mtc0 $zero, $3
  13. .L80321588:
  14. mtc0 $t1, $0
  15. nop
  16. tlbwi
  17. nop
  18. nop
  19. addi $t1, $t1, -1
  20. bnezl $t1, .L80321588 #bnezl, bnez but with likely hint
  21. nop
  22. mtc0 $t0, $10
  23. jr $ra
  24. nop
  25. nop
  26. nop
  27. nop