diff options
Diffstat (limited to 'assembly/rrxing2/rrxing2.S')
| -rw-r--r-- | assembly/rrxing2/rrxing2.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/assembly/rrxing2/rrxing2.S b/assembly/rrxing2/rrxing2.S index f2ab068..c94edc0 100644 --- a/assembly/rrxing2/rrxing2.S +++ b/assembly/rrxing2/rrxing2.S @@ -90,6 +90,11 @@ and t2,t2,t3 li t3,0x00007463 # 'ct\0\0' bne t2,t3,1f # not the detector +la t0,traincounter +lw t1,0(t0) +addi t1,t1,1 # Increment train counter +sw t1,0(t0) + la t0,currstate lb t0,0(t0) # Read current state from RAM andi t0,t0,0xf # Mask out the country @@ -357,6 +362,7 @@ country: .byte 0 # 0 = DE, 1 = UK, 2 = US gatedroptime: .byte 3 activetime: .byte 15 extensiontime: .byte 25 +traincounter: .word 0 uiunimplementedtrap: .asciz "Unimplemented trap!\nmcause: " channelbuf: .skip 16 |
