From 1151d348c0d8d5e3a92d02188911dfd305c9187b Mon Sep 17 00:00:00 2001 From: Thing1 Date: Sun, 15 Dec 2024 19:06:48 +0000 Subject: finished coursework --- electronics/cw1/final.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'electronics/cw1/final.asm') 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 -- cgit v1.2.3