Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
429:1da600c4e139 | 430:f36b93f2fbed |
---|---|
94 CONFIG LVP = OFF ;Single-Supply ICSP disabled | 94 CONFIG LVP = OFF ;Single-Supply ICSP disabled |
95 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset | 95 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset |
96 | 96 |
97 ;============================================================================= | 97 ;============================================================================= |
98 | 98 |
99 ;#include "../OSTC_code_c_part2/shared_definitions.h" | 99 #include "../OSTC_code_c_part2/shared_definitions.h" |
100 #include "shared_definitions.h" | 100 ;#include "shared_definitions.h" |
101 | 101 |
102 ;============================================================================= | 102 ;============================================================================= |
103 ; Reserve space for C-code data space. Eg.when calling log. | 103 ; Reserve space for C-code data space. Eg.when calling log. |
104 ; Note: overlayed with md_hash temporary space. | 104 ; Note: overlayed with md_hash temporary space. |
105 c_code_data_stack EQU 0x800 | 105 c_code_data_stack EQU 0x800 |
106 | |
107 ;============================================================================= | |
108 ; ACCESS0 data | |
109 ; | |
110 tmp0 udata_acs 0x04C ; Bank 0 ACCESS area for small tmp data. | |
111 tmp equ 0x04C | |
112 res .20 ; What is left from the C library. | |
106 | 113 |
107 ;============================================================================= | 114 ;============================================================================= |
108 ; BANK0 data | 115 ; BANK0 data |
109 ; | 116 ; |
110 bank0 udata 0x060 ;Bank 0 | 117 bank0 udata 0x060 ;Bank 0 |
331 decoplan_page res 1 ; used in PLED_MultiGF,... | 338 decoplan_page res 1 ; used in PLED_MultiGF,... |
332 temp10 res 2 ; used in customview | 339 temp10 res 2 ; used in customview |
333 | 340 |
334 fatal_error_code res 1 ; holds error code value | 341 fatal_error_code res 1 ; holds error code value |
335 | 342 |
336 logbook_temp1 res 1 ; Temp used in logbook display&Divemode&Gassetup | |
337 logbook_temp2 res 1 ; Temp used in logbook display&Divemode&Gassetup | |
338 logbook_temp3 res 1 ; Temp used in logbook display&Divemode&Gassetup | |
339 logbook_temp4 res 1 ; Temp used in logbook display&Divemode&Gassetup | |
340 logbook_temp5 res 1 ; Temp used in logbook display&Divemode&Gassetup | |
341 logbook_temp6 res 1 ; Temp used in logbook display&Divemode&Gassetup | |
342 logbook_cur_depth res 2 ; Current depth, for drawing profile. | |
343 logbook_cur_tp res 2 ; Current temperature, for drawing profile. | |
344 logbook_last_tp res 1 ; Y of the last item in Tp° curve. | |
345 logbook_min_tp res 2 ; Min temperature, for drawing profile. | |
346 logbook_ceiling res 1 ; Current ceiling, for drawing profile. | |
347 | |
348 convert_value_temp res 3 ; used in menu_battery_state_convert_date | 343 convert_value_temp res 3 ; used in menu_battery_state_convert_date |
349 time_correction_value res 1 ; Adds to Seconds on midnight | 344 time_correction_value res 1 ; Adds to Seconds on midnight |
350 gaslist_active res 1 ; Holds flags for active gases | 345 gaslist_active res 1 ; Holds flags for active gases |
351 desaturation_time_buffer res 2 ; buffer for desat time | 346 desaturation_time_buffer res 2 ; buffer for desat time |
352 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.) | 347 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.) |