set status register on reset

This commit is contained in:
Mateusz Faderewski 2024-05-25 00:31:09 +02:00
parent ad88fefae5
commit 5cba981f82

View File

@ -1,5 +1,7 @@
.section .text.entry_handler, "ax", %progbits
#include "vr4300.h"
.section .text.entry_handler, "ax", %progbits
entry_handler:
.type entry_handler, %function
.global entry_handler
@ -7,6 +9,9 @@ entry_handler:
la $gp, _gp
la $sp, _sp
li $v0, (C0_SR_CU0)
mtc0 $v0, C0_STATUS
lui $t0, 0xA400
lbu $a0, 9($t0) # TV type
lbu $a1, 10($t0) # Reset type