Mercurial > public > hwos_code
comparison src/ghostwriter.asm @ 275:653a3ab08062
rename into hwOS
author | heinrichsweikamp |
---|---|
date | Thu, 07 May 2015 13:11:14 +0200 |
parents | d730302fae75 |
children | dfac47ac2e1d |
comparison
equal
deleted
inserted
replaced
274:9347893b74ce | 275:653a3ab08062 |
---|---|
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
9 ; HISTORY | 9 ; HISTORY |
10 ; 2011-11-27 : [mH] Creation | 10 ; 2011-11-27 : [mH] Creation |
11 | 11 |
12 #include "ostc3.inc" ; Mandatory header | 12 #include "hwos.inc" ; Mandatory header |
13 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c | 13 #include "shared_definitions.h" ; Mailbox from/to p2_deco.c |
14 #include "external_flash.inc" | 14 #include "external_flash.inc" |
15 #include "surfmode.inc" | 15 #include "surfmode.inc" |
16 #include "eeprom_rs232.inc" | 16 #include "eeprom_rs232.inc" |
17 #include "strings.inc" | 17 #include "strings.inc" |
433 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 433 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
434 movf ext_flash_log_pointer+2,W | 434 movf ext_flash_log_pointer+2,W |
435 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 435 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
436 | 436 |
437 ; write rest of header | 437 ; write rest of header |
438 movlw logbook_profile_version ; Defined in ostc3.inc | 438 movlw logbook_profile_version ; Defined in hwos.inc |
439 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 439 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |
440 | 440 |
441 ; Store dive length | 441 ; Store dive length |
442 movf ext_flash_dive_counter+0,W | 442 movf ext_flash_dive_counter+0,W |
443 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash | 443 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash |