diff options
author | Thing1 <thing1@seacrossedlovers.xyz> | 2024-12-15 19:06:48 +0000 |
---|---|---|
committer | Thing1 <thing1@seacrossedlovers.xyz> | 2024-12-15 19:06:48 +0000 |
commit | 1151d348c0d8d5e3a92d02188911dfd305c9187b (patch) | |
tree | 2059d03a4b126c4c749db7487b52b958ba9e807e /electronics/cw1/final.asm | |
parent | 67fe02db81b4cbebd6503ddb34d3cb3b258c611b (diff) |
finished coursework
Diffstat (limited to 'electronics/cw1/final.asm')
-rw-r--r-- | electronics/cw1/final.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/electronics/cw1/final.asm b/electronics/cw1/final.asm index 9dff2ff..51ed411 100644 --- a/electronics/cw1/final.asm +++ b/electronics/cw1/final.asm @@ -35,7 +35,7 @@ loop1: bsf PORTB, 2 ; put an AMBER LED on PORTB:2 - goto main + return main: ; reads the temprature bsf PORTB,3 ; put a GREEN LED for status on PORTB:3 @@ -49,7 +49,7 @@ main: ; reads the temprature subwf rawtemp, w ; subtract the from the threshold value btfss STATUS, 0 ; if higher than desired temp - goto beep + call beep clrf STATUS ; clears the status flag, which might have a carry bit set |