From: ian Date: Mon, 28 Nov 2005 04:05:42 +0000 (+0000) Subject: some notes about surrounding things X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=41e9cc6c6cfb55d218729aaf992809555b50b267;p=trains.git some notes about surrounding things --- diff --git a/detpic/detect.asm b/detpic/detect.asm index 31698ed..f4c4ddc 100644 --- a/detpic/detect.asm +++ b/detpic/detect.asm @@ -3,7 +3,9 @@ ; FSR2 is used as outgoing message buffer pointer (reading), ; ie private to this file ; -; FSR1 is used as pointer to where to add bytes of message +; FSR1 is used as pointer to where to add bytes of message; it +; points to previous byte whose top bit must be set before +; adding another bit max_messages equ 4 @@ -14,12 +16,27 @@ max_messages equ 4 scand res 1 scane res 1 buf0 res 1 + message_buffer res max_messages udata outgoing_buffer res max_messages+2 - message_buffer res max_messages code + +slave_add_short_message +; W message unchanged + bc_f INTCON*,GIEH fixme check this works + bs_f POSTINC1,7 + mov_wf INDF1 + bs_f INTCON*,GIEH + return + + +init + set fsr2 + set fsr1 + ram locations see above + ; 80 40 20 10 08 04 02 01 ; 7 6 5 4 3 2 1 0