mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-23 15:52:42 +02:00
Former-commit-id: bed7f1bddb7af09c0f288c1150c6b1c5c106e3be [formerly 02402a0b62d22bfba17d6dfef2f443c1500b450a] [formerly 93bff37d83bad8297647c88c0b42afe81ed277e7 [formerly 08274c78a878dba3fa13551e009ca7aba6528beb]] Former-commit-id: f66285070e26f0193e87c728c4a0d3913e9a6868 [formerly 85e3eb7005d566d372945751835e29205ff816b4] Former-commit-id: deff595044d44ac83b2a5c920a64abb2d97054f5
38 lines
490 B
ArmAsm
38 lines
490 B
ArmAsm
|
|
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
.set gp=64
|
|
|
|
.include "macros.inc"
|
|
|
|
|
|
.section .text, "ax"
|
|
|
|
glabel osMapTLBRdb
|
|
mfc0 $t0, $10
|
|
li $t1, 31
|
|
mtc0 $t1, $0
|
|
mtc0 $zero, $5
|
|
li $t2, 23
|
|
lui $t1, 0xc000
|
|
mtc0 $t1, $10
|
|
lui $t1, 0x8000
|
|
srl $t3, $t1, 6
|
|
or $t3, $t3, $t2
|
|
mtc0 $t3, $2
|
|
li $t1, 1
|
|
mtc0 $t1, $3
|
|
nop
|
|
tlbwi
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
mtc0 $t0, $10
|
|
jr $ra
|
|
nop
|
|
|
|
nop
|
|
nop
|
|
|