sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

osWritebackDCacheAll.s (407B)


      1 .set noat      // allow manual use of $at
      2 .set noreorder // don't insert nops after branches
      3 
      4 #include "macros.inc"
      5 
      6 
      7 .section .text, "ax"
      8 
      9 glabel osWritebackDCacheAll
     10     li    $t0, K0BASE
     11     li    $t2, 8192
     12     addu  $t1, $t0, $t2
     13     addiu $t1, $t1, -0x10
     14 .L80322020:
     15     cache 1, ($t0)
     16     sltu  $at, $t0, $t1
     17     bnez  $at, .L80322020
     18      addiu $t0, $t0, 0x10
     19     jr    $ra
     20      nop
     21 
     22     nop
     23     nop