button fix

This commit is contained in:
cxy004 2021-08-16 10:43:19 +08:00
parent bf7329dcd3
commit a46ea5b908

View File

@ -72,7 +72,7 @@ GAME_START:
1:
lui t0, %hi(button_state)
lw t2, %lo(button_state)(t0)
xor t2, t2, zero
nor t2, t2, t2
sw t3, %lo(button_state)(t0)
and t3, t2, t3
andi t0, t3, 0x1