Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 83:3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
author | heinrichsweikamp |
---|---|
date | Tue, 07 Dec 2010 22:36:19 +0100 |
parents | 35d947d7a6e7 |
children | 82de387d6e7c |
comparison
equal
deleted
inserted
replaced
82:bc3092c41335 | 83:3e351e25f5d1 |
---|---|
32 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce | 32 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce |
33 | 33 |
34 #DEFINE FT_SMALL .0 | 34 #DEFINE FT_SMALL .0 |
35 #DEFINE FT_MEDIUM .1 | 35 #DEFINE FT_MEDIUM .1 |
36 #DEFINE FT_LARGE .2 | 36 #DEFINE FT_LARGE .2 |
37 | |
38 ;#DEFINE AAFONTS ; The nicer fonts (not working yet...) | |
37 | 39 |
38 ; Define max. 5 Binary Custom Functions here (add more in menu_custom.asm) | 40 ; Define max. 5 Binary Custom Functions here (add more in menu_custom.asm) |
39 #DEFINE binary_cf1 d'31' | 41 #DEFINE binary_cf1 d'31' |
40 #DEFINE binary_cf2 d'38' | 42 #DEFINE binary_cf2 d'38' |
41 #DEFINE binary_cf3 d'39' | 43 #DEFINE binary_cf3 d'39' |
42 #DEFINE binary_cf4 d'40' | 44 #DEFINE binary_cf4 d'40' |
43 #DEFINE binary_cf5 d'41' | 45 #DEFINE binary_cf5 d'41' |
44 #DEFINE binary_cf6 d'42' | 46 #DEFINE binary_cf6 d'42' |
45 | |
46 #DEFINE wp_fontwidth .14 | |
47 #DEFINE wp_fontheight .24 | |
48 | 47 |
49 ; Color Definitions: 8Bit RGB b'RRRGGGBB' | 48 ; Color Definitions: 8Bit RGB b'RRRGGGBB' |
50 ;#DEFINE color_red b'11100000' | 49 ;#DEFINE color_red b'11100000' |
51 #DEFINE color_blue b'00000011' | 50 #DEFINE color_blue b'00000011' |
52 #DEFINE color_green b'00011100' | 51 #DEFINE color_green b'00011100' |
96 win_leftx2 | 95 win_leftx2 |
97 win_font | 96 win_font |
98 win_invert | 97 win_invert |
99 wp_temp | 98 wp_temp |
100 ENDC | 99 ENDC |
100 ifdef AAFONTS | |
101 CBLOCK | |
102 aa_flags ; Various flags for aa_wordprocessor | |
103 aa_width:2 ; String width (more than 255...) ! | |
104 aa_height ; String (and font) height | |
105 aa_bitlen ; Count of pixels when decoding bitmaps. | |
106 aa_start:2 ; PROM ptr to start of encoded bitmap | |
107 aa_end:2 ; and end of it. | |
108 aa_colorDiv:2 ; Current color, divided by 2 or 4 | |
109 ENDC | |
110 endif | |
101 ; the following is used by the C-code up to 0x0E0!! | 111 ; the following is used by the C-code up to 0x0E0!! |
102 CBLOCK 0x0E0 ;Bank 0 | 112 CBLOCK 0x0E0 ;Bank 0 |
103 gf_decolist_copy:.32 | 113 gf_decolist_copy:.32 |
104 ENDC | 114 ENDC |
105 | 115 |
325 logbook_temp5 ; Temp used in logbook display&Divemode&Gassetup | 335 logbook_temp5 ; Temp used in logbook display&Divemode&Gassetup |
326 logbook_temp6 ; Temp used in logbook display&Divemode&Gassetup | 336 logbook_temp6 ; Temp used in logbook display&Divemode&Gassetup |
327 | 337 |
328 convert_value_temp:3 ; used in menu_battery_state_convert_date | 338 convert_value_temp:3 ; used in menu_battery_state_convert_date |
329 box_temp:5 | 339 box_temp:5 |
340 time_correction_value ; Adds to Seconds on midnight | |
341 | |
342 ; [jDG] printf variable: | |
343 printf_len ; save TBLPTR during wordprocessor | |
344 ENDC | |
345 | |
346 ifndef AAFONTS | |
347 CBLOCK | |
330 win_color1_temp | 348 win_color1_temp |
331 win_color2_temp ; Backup color registers | 349 win_color2_temp ; Backup color registers |
332 time_correction_value ; Adds to Seconds on midnight | 350 ENDC |
333 ENDC | 351 endif |
352 | |
334 | 353 |
335 CBLOCK 0x200 ;Bank 2 | 354 CBLOCK 0x200 ;Bank 2 |
336 int_O_tissue_for_debug:.32 ; deco_main_debug copies pressure of tissue to this variable | 355 int_O_tissue_for_debug:.32 ; deco_main_debug copies pressure of tissue to this variable |
337 int_O_GF_spare____:2; // 0x240 | 356 int_O_GF_spare____:2; // 0x240 |
338 int_O_GF_step:2; // 0x242 | 357 int_O_GF_step:2; // 0x242 |
451 ENDC | 470 ENDC |
452 | 471 |
453 | 472 |
454 ; C-code Routines | 473 ; C-code Routines |
455 ; PART 3 | 474 ; PART 3 |
456 #DEFINE main_wordprocessor 0x0B468 | 475 ifndef AAFONTS |
476 #DEFINE main_wordprocessor 0x0B468 | |
477 endif | |
457 | 478 |
458 ; C-code Routines | 479 ; C-code Routines |
459 ; PART 2 | 480 ; PART 2 |
460 #DEFINE deco_main_calc_hauptroutine 0x10000 | 481 #DEFINE deco_main_calc_hauptroutine 0x10000 |
461 #DEFINE deco_main_calc_without_deco 0x10020 | 482 #DEFINE deco_main_calc_without_deco 0x10020 |
638 #DEFINE uart_store_tissue_data flag15,1 ;=1: Store tissue data for next simualted dive! | 659 #DEFINE uart_store_tissue_data flag15,1 ;=1: Store tissue data for next simualted dive! |
639 #DEFINE pre_dive_screen flag15,2 ;=1: Show predive screen instead of graphs | 660 #DEFINE pre_dive_screen flag15,2 ;=1: Show predive screen instead of graphs |
640 #DEFINE blinking_better_gas flag15,3 ;=1: Gas is currently blinking | 661 #DEFINE blinking_better_gas flag15,3 ;=1: Gas is currently blinking |
641 #DEFINE display_see_l_tissue flag15,4 ;=1: Leading Tissue details are now displayed | 662 #DEFINE display_see_l_tissue flag15,4 ;=1: Leading Tissue details are now displayed |
642 #DEFINE lock_stopwatch_reset flag15,5 ;=1: Locks the Reset of the Stopwtach/Average depth for 1 second | 663 #DEFINE lock_stopwatch_reset flag15,5 ;=1: Locks the Reset of the Stopwtach/Average depth for 1 second |
643 #DEFINE maxdepth_greater_100m flag15,6 ;=1: Max Depth>100m | 664 #DEFINE maxdepth_greater_100m flag15,6 ;=1: Max Depth greater>100m |
644 #DEFINE show_interval flag15,7 ;=1: Show Interval, =0: Show Clock in Surfacemode | 665 #DEFINE show_interval flag15,7 ;=1: Show Interval, =0: Show Clock in Surfacemode |
645 | 666 |