Mercurial > public > hwos_code
diff src/ghostwriter.asm @ 5:ed1dec74d5fd
Put logbook offset into dive header
author | heinrichsweikamp |
---|---|
date | Fri, 10 May 2013 15:35:23 +0200 |
parents | 11d4fc797f74 |
children | 13cda523891f |
line wrap: on
line diff
--- a/src/ghostwriter.asm Fri May 10 14:33:28 2013 +0200 +++ b/src/ghostwriter.asm Fri May 10 15:35:23 2013 +0200 @@ -594,11 +594,15 @@ rcall ghostwrite_byte_header ; WREG -> Header in ext. flash movff char_O_relative_gradient_GF,WREG rcall ghostwrite_byte_header ; WREG -> Header in ext. flash - ; Spares at Byte 57-60 - movlw 0xFF + + ; Logbook offset + call do_logoffset_common_read; Read into lo:hi + movf lo,W rcall ghostwrite_byte_header ; WREG -> Header in ext. flash - movlw 0xFF + movf hi,W rcall ghostwrite_byte_header ; WREG -> Header in ext. flash + + ; Spare at Byte 60 movlw 0xFF rcall ghostwrite_byte_header ; WREG -> Header in ext. flash ; Store 5 Setpoints