diff --git a/cMIPS/include/handlers.s b/cMIPS/include/handlers.s index 8a0dde7468a2c6d7a8d5571c7efc94bd32fad739..4f90c23d1a681e35fdf269ca872861c101ca8672 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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391