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.

26 lines
764 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 osWritebackDCacheAll
  7. /* 0DD010 80322010 3C088000 */ li $t0, K0BASE
  8. /* 0DD014 80322014 240A2000 */ li $t2, 8192
  9. /* 0DD018 80322018 010A4821 */ addu $t1, $t0, $t2
  10. /* 0DD01C 8032201C 2529FFF0 */ addiu $t1, $t1, -0x10
  11. .L80322020:
  12. /* 0DD020 80322020 BD010000 */ cache 1, ($t0)
  13. /* 0DD024 80322024 0109082B */ sltu $at, $t0, $t1
  14. /* 0DD028 80322028 1420FFFD */ bnez $at, .L80322020
  15. /* 0DD02C 8032202C 25080010 */ addiu $t0, $t0, 0x10
  16. /* 0DD030 80322030 03E00008 */ jr $ra
  17. /* 0DD034 80322034 00000000 */ nop
  18. /* 0DD038 80322038 00000000 */ nop
  19. /* 0DD03C 8032203C 00000000 */ nop