From: ian Date: Sat, 10 Dec 2005 01:02:24 +0000 (+0000) Subject: implement crash readout protocol at least enough to talk to a slave X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=2cbd1ee211a4326f6981392e75b4412454f13c18;p=trains.git implement crash readout protocol at least enough to talk to a slave --- diff --git a/detpic/test-sofar.asm b/detpic/test-sofar.asm index e1feab4..319e721 100644 --- a/detpic/test-sofar.asm +++ b/detpic/test-sofar.asm @@ -33,7 +33,7 @@ ; if first byte of buffer _is_ negative: ; i2cm_read_start (buffer empty) ; -; 0x00 do not send this +; 0x00 ignored ; ; 0x80-ff make buffer consisting of only that byte ; (ie, clear top bit, store at start of buffer, @@ -187,8 +187,9 @@ m_ch_setonemsg mov_lfsr 0x200,0 mov_fw ch and_lw 0x7f - mov_fw POSTINC0 + mov_wf POSTINC0 clr_f INDF0 +m_ch_ignore return ;---------- @@ -197,8 +198,10 @@ m_ch_bad ;---------- m_ch_setreadnext - mov_ff ch, readnext_counter - return + mov_fw ch + bra_z m_ch_ignore + mov_wf readnext_counter + bra m_ch_spc ;---------- m_ch_comma