Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a8108a885359 | 5:ed1dec74d5fd |
---|---|
592 ; Gradient factor | 592 ; Gradient factor |
593 movff GF_start,WREG | 593 movff GF_start,WREG |
594 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 594 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
595 movff char_O_relative_gradient_GF,WREG | 595 movff char_O_relative_gradient_GF,WREG |
596 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 596 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
597 ; Spares at Byte 57-60 | 597 |
598 movlw 0xFF | 598 ; Logbook offset |
599 call do_logoffset_common_read; Read into lo:hi | |
600 movf lo,W | |
599 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 601 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
600 movlw 0xFF | 602 movf hi,W |
601 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 603 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
604 | |
605 ; Spare at Byte 60 | |
602 movlw 0xFF | 606 movlw 0xFF |
603 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 607 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
604 ; Store 5 Setpoints | 608 ; Store 5 Setpoints |
605 movff char_I_setpoint_cbar+0,WREG | 609 movff char_I_setpoint_cbar+0,WREG |
606 rcall ghostwrite_byte_header ; Setpoint in cbar | 610 rcall ghostwrite_byte_header ; Setpoint in cbar |