diff --git a/src/Embedded Application/embedded.asm b/src/Embedded Application/embedded.asm index aa09f6f..e086b53 100644 --- a/src/Embedded Application/embedded.asm +++ b/src/Embedded Application/embedded.asm @@ -74,12 +74,12 @@ loop: li a0, 0x121 ecall - # If button 0 was pressed, count up + # If button 0 was pressed, count down beqz t4, not_b0 addi t0, t0, -1 not_b0: - # If button 1 was pressed, count down + # If button 1 was pressed, count up beqz t5, not_b1 addi t0, t0, 1 not_b1: @@ -113,4 +113,4 @@ digit: .byte 0b01111101 # 6 .byte 0b00000111 # 7 .byte 0b01111111 # 8 - .byte 0b01101111 # 9 \ No newline at end of file + .byte 0b01101111 # 9