From: ian Date: Tue, 20 Dec 2005 01:07:12 +0000 (+0000) Subject: reset FSR2 to start of outbuf when we've set it up, so that we're not automatically... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=082e1fdd5ef07f67291bf58fbde1d3e73b7f3240;p=trains.git reset FSR2 to start of outbuf when we've set it up, so that we're not automatically at end of message; do not loop copying messages to outbuf if buf0<7> is clear --- diff --git a/detpic/detect.asm b/detpic/detect.asm index 7560b96..f3ed1ca 100644 --- a/detpic/detect.asm +++ b/detpic/detect.asm @@ -304,13 +304,19 @@ i2csu_read_begin_either_tail set_f scand mov_lfsr message_buffer, 1 + bt_f_if0 buf0, 7 + bra msg_copy_exitnone + ; some extra bytes to copy +;... msg_copy_loop mov_fw POSTINC1 mov_wf POSTINC2 bra_n msg_copy_loop - +;... +msg_copy_exitnone mov_ff FSR2L, outmsg_end mov_ff buf0_startval, buf0 + mov_lfsr outbuf, 2 reset_detectread ; FSR1/buf0/message_buffer any set to empty