comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 717:91ae251d379f

"ostc3-style" menu titles
author heinrichsweikamp
date Thu, 23 May 2013 10:59:34 +0200
parents 8aaacf6eee3f
children ad5ab9910820
comparison
equal deleted inserted replaced
716:d333c8462844 717:91ae251d379f
220 simulator_decoplan_cns_1: 220 simulator_decoplan_cns_1:
221 call DISP_warnings_color ; Yes: draw in red ! 221 call DISP_warnings_color ; Yes: draw in red !
222 STRCPY_PRINT TXT_CNSGR10 222 STRCPY_PRINT TXT_CNSGR10
223 223
224 simulator_decoplan_cns_2: 224 simulator_decoplan_cns_2:
225 call DISP_standard_color ; Back to normal. 225 call DISP_divemask_color
226 WIN_INVERT .1 ; Init new Wordprocessor
227 DISPLAYTEXT .188 ; Sim. Results: 226 DISPLAYTEXT .188 ; Sim. Results:
228 WIN_INVERT .0 ; Init new Wordprocessor 227 call DISP_standard_color
229 228
230 simulator_show_decoplan1: 229 simulator_show_decoplan1:
231 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! 230 call wait_switches ; Waits until switches are released, resets flag if button stays pressed!
232 simulator_show_decoplan2: 231 simulator_show_decoplan2:
233 btfsc uart_dump_screen ; Asked to dump screen contains ? 232 btfsc uart_dump_screen ; Asked to dump screen contains ?
374 addwfc xC+1,F ; add 1000mbar 373 addwfc xC+1,F ; add 1000mbar
375 374
376 movff xC+0,sim_pressure+0 375 movff xC+0,sim_pressure+0
377 movff xC+1,sim_pressure+1 376 movff xC+1,sim_pressure+1
378 377
379 call DISP_topline_box 378 call DISP_divemask_color
380 WIN_INVERT .1
381 DISPLAYTEXT .12 ; "Wait..." 379 DISPLAYTEXT .12 ; "Wait..."
382 WIN_INVERT .0 380 call DISP_standard_color
383 381
384 ; This override is done in ISR too, but do it right now also: 382 ; This override is done in ISR too, but do it right now also:
385 movff sim_pressure+0,amb_pressure+0 383 movff sim_pressure+0,amb_pressure+0
386 movff sim_pressure+1,amb_pressure+1 384 movff sim_pressure+1,amb_pressure+1
387 385