sm64

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

osMapTLBRdb.s (524B)


      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 osMapTLBRdb
     10     mfc0  $t0, $10
     11     li    $t1, 31
     12     mtc0  $t1, $0
     13     mtc0  $zero, $5
     14     li    $t2, 23
     15     lui   $t1, 0xc000
     16     mtc0  $t1, $10
     17     lui   $t1, 0x8000
     18     srl   $t3, $t1, 6
     19     or    $t3, $t3, $t2
     20     mtc0  $t3, $2
     21     li    $t1, 1
     22     mtc0  $t1, $3
     23     nop
     24     tlbwi
     25     nop
     26     nop
     27     nop
     28     nop
     29     mtc0  $t0, $10
     30     jr    $ra
     31      nop
     32 
     33     nop
     34     nop
     35