chiark / gitweb /
nmra-stream poke host about buffers
authorian <ian>
Wed, 21 Dec 2005 15:11:57 +0000 (15:11 +0000)
committerian <ian>
Wed, 21 Dec 2005 15:11:57 +0000 (15:11 +0000)
detpic/nmra-stream.asm
detpic/variables.asm

index b4acb469f19bd75e6f2aa53e1bb9c613aecbcdc7..8f425710c012e412d2923e424b01d9d55351d5bf 100644 (file)
@@ -424,6 +424,9 @@ advance_read_buffer
 ; clear bit 6 (will set back to buffer 0 if has overflowed to 4)
        bc_fa   totrack,6  
        debug   '9'     ; write 'v' to serial port
+
+       bs_f    flags, flags_tellnmra   ; ensure we tell
+       bs_f    PIE1, TXIE              ;  host to send us more
        return
 
 
index 884d4ecc426c698d6ded9622d8b9345885685575..776f39fc3c17fafba781b270a9ba02967a0c2a39 100644 (file)
@@ -8,6 +8,9 @@ idloc1          res     1       ; from 2nd idlocs byte; bit 7 is master:
 idloc1_master  equ     7
 idloc1_boarddet        equ     6
 
+flags          res     1       ; miscellaneous state flags
+flags_tellnmra equ     7       ; must tell host about NMRA buffer state
+
 t              res     1       ; general temporary
 t_dolocal      res     1       ; temporary for <foo>_local_do
 outmsg_end     res     1       ; first empty byte in outbuf