diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-11-14 12:36:13 -0600 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-11-14 12:36:13 -0600 |
| commit | 317c86f160ef116b2f080921cdaf1350687b350c (patch) | |
| tree | e7d399c4af7ca1388462a5adf91b73479c2d1405 /assembly/crosswalk | |
| parent | f212e8e0d9f86148ba216bcc19639b77fbb18c4c (diff) | |
| download | rvcontroller-317c86f160ef116b2f080921cdaf1350687b350c.tar rvcontroller-317c86f160ef116b2f080921cdaf1350687b350c.tar.gz rvcontroller-317c86f160ef116b2f080921cdaf1350687b350c.tar.bz2 rvcontroller-317c86f160ef116b2f080921cdaf1350687b350c.tar.xz rvcontroller-317c86f160ef116b2f080921cdaf1350687b350c.zip | |
Make crosswalk turn the signals off if an error occurs
Diffstat (limited to 'assembly/crosswalk')
| -rw-r--r-- | assembly/crosswalk/crosswalk.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/assembly/crosswalk/crosswalk.S b/assembly/crosswalk/crosswalk.S index 4baeaa8..2403529 100644 --- a/assembly/crosswalk/crosswalk.S +++ b/assembly/crosswalk/crosswalk.S @@ -172,6 +172,16 @@ ld x30,116(x31) mret # Return to the program handler_other: +# Turn the lights all off to indicate that they're not working +la a0,lightchannel +la a1,offmsg +li a7,129 +ecall +la a0,pedchannel +la a1,offmsg +li a7,129 +ecall + li a7,4 la a0,unimplementedmsg ecall # Display unimplemented trap message @@ -191,6 +201,7 @@ msgbuf: .asciz " " lightchannel: .asciz "light" pedchannel: .asciz "ped" +offmsg: .asciz "OFF" redmsg: .asciz "RED" yellowmsg: .asciz "YELLOW" greenmsg: .asciz "GREEN" |
