chiark / gitweb /
implement crash readout protocol at least enough to talk to a slave
authorian <ian>
Sat, 10 Dec 2005 01:02:24 +0000 (01:02 +0000)
committerian <ian>
Sat, 10 Dec 2005 01:02:24 +0000 (01:02 +0000)
detpic/test-sofar.asm

index e1feab4da72964c5a120c001551e627769e52b83..319e7216b7e21b0d38744e7f20f306c999e60b47 100644 (file)
@@ -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