Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 636:2737ddc643bb
3.11 release
author | heinrichsweikamp |
---|---|
date | Mon, 25 May 2020 17:35:30 +0200 |
parents | 9a64914a8fca |
children | 8c1f1f334275 |
comparison
equal
deleted
inserted
replaced
635:9a64914a8fca | 636:2737ddc643bb |
---|---|
69 pallet_table CODE_PACK 0x09800 ; must be at 0x***00 | 69 pallet_table CODE_PACK 0x09800 ; must be at 0x***00 |
70 ;============================================================================= | 70 ;============================================================================= |
71 | 71 |
72 | 72 |
73 pallet_table: | 73 pallet_table: |
74 ; mask disabled memo advice attention warning ; pallet | 74 ; mask disabled memo advice attention warning ; pallet |
75 ; --------------- ------------------- --------------- --------------- --------------- --------------- -------- | 75 ; ------------ ----------------- ---------------- --------------- ------------- --------- ---------- |
76 DB color_green, color_lightblue, color_white, color_green, color_yellow, color_red ; standard | 76 DB color_green, color_lightblue, color_white, color_green, color_yellow, color_red ; standard |
77 DB color_red, color_dark_red, color_orange, color_green, color_yellow, color_red ; redish | 77 DB color_red, color_dark_red, color_orange, color_greenish, color_pink, color_red ; reddish |
78 DB color_cyan, color_dark_green, color_green, color_green, color_yellow, color_red ; greenish | 78 DB color_cyan, color_dark_green, color_green, color_green, color_cyan, color_red ; greenish |
79 DB color_blue, color_deepblue, color_lightblue,color_green, color_yellow, color_red ; blueish | 79 DB color_blue, color_deepblue, color_lightblue, color_greenish, color_orange, color_red ; blueish |
80 | 80 |
81 | 81 |
82 ;============================================================================= | 82 ;============================================================================= |
83 tft_out1 CODE | 83 tft_out1 CODE |
84 ;============================================================================= | 84 ;============================================================================= |
6041 ELSE | 6041 ELSE |
6042 | 6042 |
6043 btfsc alt_layout_active ; alternative layout active? | 6043 btfsc alt_layout_active ; alternative layout active? |
6044 return ; YES - abort | 6044 return ; YES - abort |
6045 | 6045 |
6046 ; WIN_TINY .100,.30 ; surface mode: fits under the textual logo in the upper right corner | 6046 WIN_TINY .100,.30 ; surface mode: fits under the textual logo in the upper right corner |
6047 ; WIN_TINY .35, .0 ; dive mode: fits to the right side of the depth label | 6047 ; WIN_TINY .35, .0 ; dive mode: fits to the right side of the depth label |
6048 WIN_TINY .0, . 0 ; dive mode: overwrites depth label | 6048 ; WIN_TINY .0, . 0 ; dive mode: overwrites depth label |
6049 FONT_COLOR_MEMO ; set color | 6049 FONT_COLOR_MEMO ; set color |
6050 | 6050 |
6051 ; deco engine scheduling performance | 6051 movff analog_sw1,mpr |
6052 MOVII int_O_profiling_overrun,mpr ; runtime +/- versus target | 6052 output_256 |
6053 btfss mpr+1,7 ; overrun? | 6053 PUTC ',' |
6054 bra TFT_debug_output_1 ; YES | 6054 movff analog_sw2,mpr |
6055 bcf mpr+1,7 ; NO - clear flag | 6055 output_256 |
6056 PUTC "-" ; - print a minus | 6056 |
6057 bra TFT_debug_output_2 ; - continue | |
6058 TFT_debug_output_1: | |
6059 PUTC " " ; print a space instead of the minus | |
6060 TFT_debug_output_2: | |
6061 output_999 ; print time (0-999) | |
6062 PUTC "." ; print a dot as separator | |
6063 MOVII int_O_profiling_overrun_max,mpr ; get max runtime so far | |
6064 output_999 ; print (0-999) | |
6065 PUTC "." ; print a dot as separator | |
6066 movff char_O_profiling_overrun_phase,WREG ; get calculation phase causing the max runtime | |
6067 output_hex ; print a hex | |
6068 PUTC "." ; print a dot as separator | |
6069 movff char_O_profiling_runs_norm,mpr ; get runs/cycle normal plan | |
6070 output_99 ; print (0-99) | |
6071 PUTC "." ; print a dot as separator | |
6072 movff char_O_profiling_runs_alt,mpr ; get runs/cycle alternative plan | |
6073 output_99 ; print (0-99) | |
6074 PRINT ; dump to screen | 6057 PRINT ; dump to screen |
6075 return ; done | 6058 return ; done |
6076 | 6059 |
6077 ENDIF ; _debug_output | 6060 ENDIF ; _debug_output |
6078 | 6061 |