Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Interrupt handling 从何处开始使用键盘中断处理程序_Interrupt Handling_Mips32_Mars Simulator - Fatal编程技术网

Interrupt handling 从何处开始使用键盘中断处理程序

Interrupt handling 从何处开始使用键盘中断处理程序,interrupt-handling,mips32,mars-simulator,Interrupt Handling,Mips32,Mars Simulator,我开始使用MARS MIPS中的一个程序,该程序允许用户在MMIO输入窗口中以“x+y=”的形式输入内容,并获得“x+y=z”。然而,我真的不知道从哪里开始。我有基本的设置,但我需要编写一个完整的中断处理程序 我正在使用MARS MIPS

我开始使用MARS MIPS中的一个程序,该程序允许用户在MMIO输入窗口中以“x+y=”的形式输入内容,并获得“x+y=z”。然而,我真的不知道从哪里开始。我有基本的设置,但我需要编写一个完整的中断处理程序

我正在使用MARS MIPS<,并启用了中断位,但这就是我所知道的全部

.text

main:
    #Turn on the interupt enable bit
    lui $t0, Oxffff
    lw $t1, 0($t0)
    ori $t0, $t1, 0x0002
    sw $t1, 0($t0)



.data
expBuffer: .space 60
expBuff: .word 0

.ktext 0x80000180
#Store all used registers

#Recover all used registers

.kdata
#Registers