From: ceb Date: Sun, 31 Oct 2004 23:40:22 +0000 (+0000) Subject: typo fix X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=be0b3984e5607fb9b2860db008e331318577c8e4;p=trains.git typo fix --- diff --git a/cebpic/Makefile b/cebpic/Makefile index 1e482f4..6392bed 100644 --- a/cebpic/Makefile +++ b/cebpic/Makefile @@ -1,4 +1,4 @@ -TARGETS= led-flash.hex +TARGETS= led-flash.hex send-serial.hex include ../pic.make diff --git a/cebpic/send-serial.asm b/cebpic/send-serial.asm index 7b08b0e..d02314c 100644 --- a/cebpic/send-serial.asm +++ b/cebpic/send-serial.asm @@ -17,39 +17,39 @@ start bsf SPBRG,7,0 bsf SPBRG,0,0 - call initialise-ascii + call initialiseascii main movff 00h,TXREG ; move 00h to transmit buffer (ascii s) - call wait-for-tsr + call waitfortsr movff 01h,TXREG ; move 01h to transmit buffer (ascii q) - call wait-for-tsr + call waitfortsr movff 02h,TXREG ; move 02h to transmit buffer (ascii o) - call wait-for-tsr + call waitfortsr movff 02h,TXREG ; move 02h to transmit buffer (ascii o) - call wait-for-tsr + call waitfortsr movff 03h,TXREG ; move 03h to transmit buffer (ascii k) - call wait-for-tsr + call waitfortsr movff 04h,TXREG ; move 04h to transmit buffer (ascii SPACE) - call wait-for-tsr + call waitfortsr goto main -wait-for-tsr +waitfortsr btfss TXSTA,1,0 ; check whether TRMT is set (i.e. TSR is empty) - bra wait-for-tsr + bra waitfortsr return -initialise-ascii ; set up ascii letter bytes +initialiseascii ; set up ascii letter bytes ; there must be a faster way to do this... - crlf 00h,0 ; clear data registers - crlf 01h,0 - crlf 02h,0 - crlf 03h,0 - crlf 04h,0 + clrf 00h,0 ; clear data registers + clrf 01h,0 + clrf 02h,0 + clrf 03h,0 + clrf 04h,0 bsf 00h,6,0 ; set 00h to be ascii s bsf 00h,5,0