From 89ab6750d78402fff9ae01a7adf2c75a44e02a93 Mon Sep 17 00:00:00 2001 From: cxy004 Date: Tue, 17 Aug 2021 18:33:46 +0800 Subject: [PATCH] fix pause --- resources/ping-pong-mips32/game/game/supv.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/ping-pong-mips32/game/game/supv.S b/resources/ping-pong-mips32/game/game/supv.S index 7472594..daaa25f 100644 --- a/resources/ping-pong-mips32/game/game/supv.S +++ b/resources/ping-pong-mips32/game/game/supv.S @@ -20,9 +20,9 @@ resume: SUPV_START: lui t0, %hi(SWITCH) + 1 lw t1, %lo(SWITCH)(t0) - sltiu t1, t1, 1 - nor t1, t1, t1 - and s0, s0, t1 + andi s0, s0, 0x2 + sltu t1, zero, t1 + or s0, s0, t1 la t0, kb_buffer lw t2, -8(t0) lw t3, -4(t0)