From 982a1f13deb19926bd2f7c280d65d976a1c4ffa1 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 15 Nov 2026 13:20:48 -0600 Subject: Add ability to clear statistics in rrxing2, also fix a possible spurious interrupt --- assembly/rrxing2/rrxing2.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'assembly/rrxing2/rrxing2.S') diff --git a/assembly/rrxing2/rrxing2.S b/assembly/rrxing2/rrxing2.S index ba8dac9..6f0ce33 100644 --- a/assembly/rrxing2/rrxing2.S +++ b/assembly/rrxing2/rrxing2.S @@ -87,11 +87,11 @@ ecall # Read the next digilines message la t0,channelbuf ld t1,0(t0) li t3,0x65746564 # 'dete' -bne t1,t3,1f # not the detector +bne t1,t3,3f # not the detector li t3,0x00ffffff and t2,t2,t3 li t3,0x00007463 # 'ct\0\0' -bne t2,t3,1f # not the detector +bne t2,t3,3f # not the detector la t0,traincounter lw t1,0(t0) @@ -146,7 +146,7 @@ lw t0,0(t0) # Load the pointer jalr ra,t0,0 # And call that function 1: -li a7,133 +3: li a7,133 ecall # Check if there are more messages to process bnez a0,handler_digilines j handler_epilogue -- cgit v1.2.3