summaryrefslogtreecommitdiff
path: root/software/ttx
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2011-05-03 22:24:49 +0000
committerChristian Pointner <equinox@mur.at>2011-05-03 22:24:49 +0000
commit36280cd2728fb32cdeecc055b89402e3296eec45 (patch)
tree4abd71ff301b9e1eb2091b18529a2c49ec30f749 /software/ttx
parentfirst working version (diff)
ignoring invalid character
git-svn-id: https://svn.spreadspace.org/mur.sat@15 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/ttx')
-rw-r--r--software/ttx/ttx.asm10
1 files changed, 7 insertions, 3 deletions
diff --git a/software/ttx/ttx.asm b/software/ttx/ttx.asm
index c9826c7..d7282e0 100644
--- a/software/ttx/ttx.asm
+++ b/software/ttx/ttx.asm
@@ -245,6 +245,9 @@ beacon_next_char
call string
call getcwlen
movwf ELECNT
+ movf ELECNT,f
+ btfsc STATUS,Z
+ goto beacon_invalid_char
beacon_next_element
bcf GPIO,CWOUT
@@ -256,21 +259,22 @@ beacon_next_element
bsf GPIO,CWOUT
rlf ELEMENT,f
-
+
decfsz ELECNT,f
goto beacon_element_space
movlw CSPACE
call dottime
+beacon_invalid_char
decfsz CHARCNT,f
goto beacon_next_char
return
-
+
beacon_element_space
movlw ESPACE
call dottime
goto beacon_next_element
-
+
;; -------------------------------------
;; MAINLOOP
main