summaryrefslogtreecommitdiff
path: root/electronics/cw1/final.asm
diff options
context:
space:
mode:
Diffstat (limited to 'electronics/cw1/final.asm')
-rw-r--r--electronics/cw1/final.asm4
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