chiark / gitweb /
reset FSR2 to start of outbuf when we've set it up, so that we're not automatically...
authorian <ian>
Tue, 20 Dec 2005 01:07:12 +0000 (01:07 +0000)
committerian <ian>
Tue, 20 Dec 2005 01:07:12 +0000 (01:07 +0000)
detpic/detect.asm

index 7560b968c4bdfbf02c1b022bee7ad21219e47428..f3ed1ca41e4f9eed345fda3bec927a01d7f61881 100644 (file)
@@ -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