diff code_part1/OSTC_code_asm_part1/definitions.asm @ 430:f36b93f2fbed

Minor logbook cleanups. Created a 20byte tmp area, safe from C-library footprint.
author JeanDo
date Thu, 04 Aug 2011 18:54:26 +0200
parents 07f5b0baaa57
children b9cf06de8aca
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/definitions.asm	Thu Aug 04 07:44:03 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/definitions.asm	Thu Aug 04 18:54:26 2011 +0200
@@ -96,8 +96,8 @@
 
 ;=============================================================================
 
-;#include "../OSTC_code_c_part2/shared_definitions.h"
-#include "shared_definitions.h"
+#include "../OSTC_code_c_part2/shared_definitions.h"
+;#include "shared_definitions.h"
 
 ;=============================================================================
 ; Reserve space for C-code data space. Eg.when calling log.
@@ -105,6 +105,13 @@
 c_code_data_stack   EQU 0x800
 
 ;=============================================================================
+; ACCESS0 data
+;
+tmp0            udata_acs 0x04C     ; Bank 0 ACCESS area for small tmp data.
+tmp             equ       0x04C
+                res .20             ; What is left from the C library.
+
+;=============================================================================
 ; BANK0 data
 ;
 bank0           udata 0x060     ;Bank 0
@@ -333,18 +340,6 @@
 
 fatal_error_code        res 1   ; holds error code value 
 
-logbook_temp1           res 1   ; Temp used in logbook display&Divemode&Gassetup
-logbook_temp2           res 1   ; Temp used in logbook display&Divemode&Gassetup
-logbook_temp3           res 1   ; Temp used in logbook display&Divemode&Gassetup
-logbook_temp4           res 1   ; Temp used in logbook display&Divemode&Gassetup
-logbook_temp5           res 1   ; Temp used in logbook display&Divemode&Gassetup
-logbook_temp6           res 1   ; Temp used in logbook display&Divemode&Gassetup
-logbook_cur_depth       res 2   ; Current depth, for drawing profile.
-logbook_cur_tp          res 2   ; Current temperature, for drawing profile.
-logbook_last_tp         res 1   ; Y of the last item in Tp° curve.
-logbook_min_tp          res 2   ; Min temperature, for drawing profile.
-logbook_ceiling         res 1   ; Current ceiling, for drawing profile.
-
 convert_value_temp      res 3   ; used in menu_battery_state_convert_date
 time_correction_value   res 1   ; Adds to Seconds on midnight
 gaslist_active          res 1	; Holds flags for active gases