From 3917dfe72d69d6ba9a0ac1f65a51b54dd03ff636 Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 21 Dec 2005 15:11:57 +0000 Subject: [PATCH] nmra-stream poke host about buffers --- detpic/nmra-stream.asm | 3 +++ detpic/variables.asm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/detpic/nmra-stream.asm b/detpic/nmra-stream.asm index b4acb46..8f42571 100644 --- a/detpic/nmra-stream.asm +++ b/detpic/nmra-stream.asm @@ -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 diff --git a/detpic/variables.asm b/detpic/variables.asm index 884d4ec..776f39f 100644 --- a/detpic/variables.asm +++ b/detpic/variables.asm @@ -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 _local_do outmsg_end res 1 ; first empty byte in outbuf -- 2.30.2