papermario/ver/jp/asm/os/__osProbeTLB.s

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
2.9 KiB
ArmAsm
Raw Normal View History

.include "macro.inc"
/* assembler directives */
.set noat /* allow manual use of $at */
.set noreorder /* don't insert nops after branches */
.set gp=64 /* allow use of 64-bit general purpose registers */
.section .text, "ax"
/* Generated by spimdisasm 1.11.1 */
# Handwritten function
glabel __osProbeTLB
/* 41C30 80066830 40085000 */ mfc0 $t0, $10 # handwritten instruction
/* 41C34 80066834 310900FF */ andi $t1, $t0, 0xFF
/* 41C38 80066838 2401E000 */ addiu $at, $zero, -0x2000
/* 41C3C 8006683C 00815024 */ and $t2, $a0, $at
/* 41C40 80066840 012A4825 */ or $t1, $t1, $t2
/* 41C44 80066844 40895000 */ mtc0 $t1, $10 # handwritten instruction
/* 41C48 80066848 00000000 */ nop
/* 41C4C 8006684C 00000000 */ nop
/* 41C50 80066850 00000000 */ nop
/* 41C54 80066854 42000008 */ tlbp # handwritten instruction
/* 41C58 80066858 00000000 */ nop
/* 41C5C 8006685C 00000000 */ nop
/* 41C60 80066860 400B0000 */ mfc0 $t3, $0 # handwritten instruction
/* 41C64 80066864 3C018000 */ lui $at, (0x80000000 >> 16)
/* 41C68 80066868 01615824 */ and $t3, $t3, $at
/* 41C6C 8006686C 1560001A */ bnez $t3, .LJP_800668D8
/* 41C70 80066870 00000000 */ nop
/* 41C74 80066874 42000001 */ tlbr # handwritten instruction
/* 41C78 80066878 00000000 */ nop
/* 41C7C 8006687C 00000000 */ nop
/* 41C80 80066880 00000000 */ nop
/* 41C84 80066884 400B2800 */ mfc0 $t3, $5 # handwritten instruction
/* 41C88 80066888 216B2000 */ addi $t3, $t3, 0x2000 # handwritten instruction
/* 41C8C 8006688C 000B5842 */ srl $t3, $t3, 1
/* 41C90 80066890 01646024 */ and $t4, $t3, $a0
/* 41C94 80066894 15800004 */ bnez $t4, .LJP_800668A8
/* 41C98 80066898 216BFFFF */ addi $t3, $t3, -0x1 # handwritten instruction
/* 41C9C 8006689C 40021000 */ mfc0 $v0, $2 # handwritten instruction
/* 41CA0 800668A0 10000002 */ b .LJP_800668AC
/* 41CA4 800668A4 00000000 */ nop
.LJP_800668A8:
/* 41CA8 800668A8 40021800 */ mfc0 $v0, $3 # handwritten instruction
.LJP_800668AC:
/* 41CAC 800668AC 304D0002 */ andi $t5, $v0, 0x2
/* 41CB0 800668B0 11A00009 */ beqz $t5, .LJP_800668D8
/* 41CB4 800668B4 00000000 */ nop
/* 41CB8 800668B8 3C013FFF */ lui $at, (0x3FFFFFC0 >> 16)
/* 41CBC 800668BC 3421FFC0 */ ori $at, $at, (0x3FFFFFC0 & 0xFFFF)
/* 41CC0 800668C0 00411024 */ and $v0, $v0, $at
/* 41CC4 800668C4 00021180 */ sll $v0, $v0, 6
/* 41CC8 800668C8 008B6824 */ and $t5, $a0, $t3
/* 41CCC 800668CC 004D1020 */ add $v0, $v0, $t5 # handwritten instruction
/* 41CD0 800668D0 10000002 */ b .LJP_800668DC
/* 41CD4 800668D4 00000000 */ nop
.LJP_800668D8:
/* 41CD8 800668D8 2402FFFF */ addiu $v0, $zero, -0x1
.LJP_800668DC:
/* 41CDC 800668DC 40885000 */ mtc0 $t0, $10 # handwritten instruction
/* 41CE0 800668E0 03E00008 */ jr $ra
/* 41CE4 800668E4 00000000 */ nop
/* 41CE8 800668E8 00000000 */ nop
/* 41CEC 800668EC 00000000 */ nop