From 1ede85f2888e54c801181671e70b9e29b29a2817 Mon Sep 17 00:00:00 2001 From: Strozzi <laps15@inf.ufpr.br> Date: Tue, 24 May 2016 11:34:44 -0300 Subject: [PATCH] Add the handler file --- cMIPS/include/handlers.s | 12 ++++++------ cMIPS/tests/handlerUART.s | 0 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 cMIPS/tests/handlerUART.s diff --git a/cMIPS/include/handlers.s b/cMIPS/include/handlers.s index 8a0dde7..4f90c23 100644 --- a/cMIPS/include/handlers.s +++ b/cMIPS/include/handlers.s @@ -113,7 +113,7 @@ UARTinterr: #---------------------------------- # while you are developing the complete handler, # uncomment the line below and comment out lines up to UARTret - # .include "../tests/handlerUART.s" + .include "../tests/handlerUART.s" #---------------------------------- andi $a1, $k1, UART_rx_irq # Is this reception? @@ -121,11 +121,11 @@ UARTinterr: nop # handle reception - lw $a1, 4($a0) # Read data from device - nop # and store it to UART's buffer - sw $a1, 2*4($k0) # and return from interrupt - addiu $a1, $zero, 1 - sw $a1, 3*4($k0) # Signal new arrival + #lw $a1, 4($a0) # Read data from device + #nop # and store it to UART's buffer + #sw $a1, 2*4($k0) # and return from interrupt + #addiu $a1, $zero, 1 + #sw $a1, 3*4($k0) # Signal new arrival UARTret: lw $a1, 6*4($k0) # restore registers $a0,$a1, others? diff --git a/cMIPS/tests/handlerUART.s b/cMIPS/tests/handlerUART.s new file mode 100644 index 0000000..e69de29 -- GitLab