summaryrefslogtreecommitdiff
path: root/assembly/rrxing2/rrxing2.S
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-11-15 13:20:48 -0600
committercheapie <cheapiephp@gmail.com>2026-11-15 13:20:48 -0600
commit982a1f13deb19926bd2f7c280d65d976a1c4ffa1 (patch)
tree988674a14c3f219c0fec7f4ea14b05ef4b6e8fc1 /assembly/rrxing2/rrxing2.S
parent69cc4505f0ea31d3893847d8e127ac2d2ed59749 (diff)
downloadrvcontroller-982a1f13deb19926bd2f7c280d65d976a1c4ffa1.tar
rvcontroller-982a1f13deb19926bd2f7c280d65d976a1c4ffa1.tar.gz
rvcontroller-982a1f13deb19926bd2f7c280d65d976a1c4ffa1.tar.bz2
rvcontroller-982a1f13deb19926bd2f7c280d65d976a1c4ffa1.tar.xz
rvcontroller-982a1f13deb19926bd2f7c280d65d976a1c4ffa1.zip
Add ability to clear statistics in rrxing2, also fix a possible spurious interrupt
Diffstat (limited to 'assembly/rrxing2/rrxing2.S')
-rw-r--r--assembly/rrxing2/rrxing2.S6
1 files changed, 3 insertions, 3 deletions
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