comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 415:d022c62a1df5

fixing issue with end-of-dive threshold in high-altitude mode simulator now works up to 120m depth fix internal logbook hung up on bad profile data
author heinrichsweikamp
date Sun, 17 Jul 2011 17:23:25 +0200
parents b358a394e6aa
children ad0f145ba619
comparison
equal deleted inserted replaced
414:dd4a1aa96232 415:d022c62a1df5
40 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce 40 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce
41 41
42 #DEFINE FT_SMALL .0 42 #DEFINE FT_SMALL .0
43 #DEFINE FT_MEDIUM .1 43 #DEFINE FT_MEDIUM .1
44 #DEFINE FT_LARGE .2 44 #DEFINE FT_LARGE .2
45
46 ; "Better Gas" behavior
47 ; better_gas_window <= minimum_change_depth !
48 ; minimum_change_depth >=5 !
49 #DEFINE minimum_change_depth .3 ; [m]
50 #DEFINE better_gas_window .3 ; [m]
45 51
46 ; Color Definitions: 8Bit RGB b'RRRGGGBB' 52 ; Color Definitions: 8Bit RGB b'RRRGGGBB'
47 #DEFINE color_red d'224' 53 #DEFINE color_red d'224'
48 #DEFINE color_violet d'235' 54 #DEFINE color_violet d'235'
49 #DEFINE color_blue d'199' 55 #DEFINE color_blue d'199'
83 CONFIG LVP = OFF ;Single-Supply ICSP disabled 89 CONFIG LVP = OFF ;Single-Supply ICSP disabled
84 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset 90 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset
85 91
86 ;============================================================================= 92 ;=============================================================================
87 93
88 #include "../OSTC_code_c_part2/shared_definitions.h" 94 ;#include "../OSTC_code_c_part2/shared_definitions.h"
89 ;#include "shared_definitions.h" 95 #include "shared_definitions.h"
90 96
91 ;============================================================================= 97 ;=============================================================================
92 ; Reserve space for C-code data space. Eg.when calling log. 98 ; Reserve space for C-code data space. Eg.when calling log.
93 ; Note: overlayed with md_hash temporary space. 99 ; Note: overlayed with md_hash temporary space.
94 c_code_data_stack EQU 0x800 100 c_code_data_stack EQU 0x800