chiark / gitweb /
slight optimisation; improvement of doc comments
authorian <ian>
Thu, 22 Dec 2005 23:29:17 +0000 (23:29 +0000)
committerian <ian>
Thu, 22 Dec 2005 23:29:17 +0000 (23:29 +0000)
detpic/serout.asm

index 325c6bbb1a0560467b228b29b1361e228772d700..4b3011a920482f82a197042bb8eb1005238fbd9f 100644 (file)
@@ -5,32 +5,30 @@
  code
 ;----------------------------------------
 serial_addbyte
-;  W           byte for transmission to host   trashed
-;  FSR0                any                             set for serial_addbyte_another
-;  outmsg_*    buffer not full                 adjusted appropriately
-;  STATUS      any                             trashed
-;  all others  any                             not interfered with
+;  W                   byte to xmit to host    trashed
+;  FSR0                        any                     set for serial_addbyte_another
+;  outbuf, outmsg_*    buffer not full         adjusted appropriately
+;  STATUS              any                     trashed
+;  all others          any                     not interfered with
 ;
        mov_lfsr outbuf, 0
        mov_ff  outmsg_end, FSR0L
 ;...
 serial_addbyte_another
-;  W           byte for transmission to host   trashed
-;  FSR0                from serial_addbyte[_another]   set for serial_addbyte_another
-;  outmsg_*    buffer not full                 adjusted appropriately
-;  STATUS      any                             trashed
-;  all others  any                             not interfered with
+;  W                   byte to xmit to host    trashed
+;  FSR0                        from _addbyte[_another] updated for ..._another again
+;  outbuf, outmsg_*    buffer not full         adjusted appropriately
+;  STATUS              any                     trashed
+;  all others          any                     not interfered with
 ;
        mov_wf  POSTINC0
        bc_f    FSR0L, 7
        mov_fw  FSR0L
        mov_wf  outmsg_end
-       xor_wfw outmsg_begin
-       bra_z   serial_addbyte_toomany
+       cmp_fw_ifne outmsg_begin
        return
-
-;-----
-serial_addbyte_toomany panic morse_HB
+       ; too many
+       panic morse_HB
 
 ;======================================================================
  include final.inc