comparison src/logbook.asm @ 418:a5fc007634c5

some cleanup
author heinrichsweikamp
date Tue, 19 Apr 2016 14:03:24 +0200
parents e5a9c9f76315
children 5604cd15c39f
comparison
equal deleted inserted replaced
417:e5a9c9f76315 418:a5fc007634c5
28 #include "divemode.inc" 28 #include "divemode.inc"
29 #include "ghostwriter.inc" 29 #include "ghostwriter.inc"
30 30
31 extern do_main_menu2,comm_mode 31 extern do_main_menu2,comm_mode
32 32
33 CBLOCK tmp+0x35 ; Keep space for menu processor. 33 CBLOCK tmp+0x36 ; Keep space for menu processor.
34 count_temperature ; Current sample count for temperature divisor 34 count_temperature ; Current sample count for temperature divisor
35 count_deco ; Current sample count for deco (ceiling) divisor 35 count_deco ; Current sample count for deco (ceiling) divisor
36 logbook_cur_depth:2 ; Current depth, for drawing profile. 36 logbook_cur_depth:2 ; Current depth, for drawing profile.
37 logbook_cur_tp:2 ; Current temperature, for drawing profile. 37 logbook_cur_tp:2 ; Current temperature, for drawing profile.
38 logbook_last_tp ; Y of the last item in Tp° curve. 38 logbook_last_tp ; Y of the last item in Tp° curve.
39 logbook_min_tp:2 ; Min temperature, for drawing profile. 39 logbook_min_tp:2 ; Min temperature, for drawing profile.
40 logbook_max_tp:2 ; Maximum temperature, for drawing profile. 40 logbook_max_tp:2 ; Maximum temperature, for drawing profile.
41 logbook_ceiling ; Current ceiling, for drawing profile. 41 logbook_ceiling ; Current ceiling, for drawing profile.
42 logbook_flags ; Flags only used in logbook.asm 42 logbook_flags ; Flags only used in logbook.asm
43 logbook_page_number ; Page# in logbook 43 logbook_page_number ; Page# in logbook
44 logbook_divenumber ; # of dive in list during search 44 logbook_divenumber ; # of dive in list during search
45 logbook_divenumber_temp ; # of dive in list during search 45 logbook_divenumber_temp ; # of dive in list during search
46 logbook_menupos_temp ; Last position of cursor 46 logbook_menupos_temp ; Last position of cursor
47 profile_temp:2 ; Temp for profile display 47 profile_temp:2 ; Temp for profile display
48 profile_temp2:2 ; Temp for profile display 48 profile_temp2:2 ; Temp for profile display
49 logbook_max_dive_counter ; Counts dive# to zero 49 logbook_max_dive_counter ; Counts dive# to zero
50 logbook_max_dive_counter_temp; Counts dive# to zero 50 logbook_max_dive_counter_temp; Counts dive# to zero
51 logbook_sample_counter:2 ; Amount of read samples 51 logbook_sample_counter:2; Amount of read samples
52 divemins_backup ; Backup of divemins+0 52 divemins_backup ; Backup of divemins+0
53 y_scale:2 ; y-scale (The horizontal lines) 53 y_scale:2 ; y-scale (The horizontal lines)
54 x_scale:2 ; x-scale (The vertical lines) 54 x_scale:2 ; x-scale (The vertical lines)
55 logbook_pixel_x_pos ; x2 position of current pixel in X-direction 55 logbook_pixel_x_pos ; x2 position of current pixel in X-direction
56 logbook_min_temp_pos ; lowest row in the temp graph 56 logbook_min_temp_pos ; lowest row in the temp graph
57 logbook_max_temp_pos ; lowest row in the temp graph 57 logbook_max_temp_pos ; lowest row in the temp graph
58 ;+.33, reserved to tmp+0x56 58 ;+.33, reserved to tmp+0x57
59 ENDC 59 ENDC
60 60
61 #DEFINE return_from_profileview logbook_flags,0 61 #DEFINE return_from_profileview logbook_flags,0
62 #DEFINE all_dives_shown logbook_flags,1 62 #DEFINE all_dives_shown logbook_flags,1
63 #DEFINE logbook_page_not_empty logbook_flags,2 63 #DEFINE logbook_page_not_empty logbook_flags,2