Mercurial > public > mk2
changeset 337:6bdf80d7276c ScreenDump
Added screen dumps of general menus.
Added screen dumps in logbook, gassetup, license.
Added screen dumps in altimeter, decoplan.
author | JeanDo |
---|---|
date | Tue, 17 May 2011 01:05:04 +0200 |
parents | 9ee86a19f1fa |
children | 797e2ac42d24 |
files | code_part1/OSTC_code_asm_part1/altimeter.asm code_part1/OSTC_code_asm_part1/divemode_menu.asm code_part1/OSTC_code_asm_part1/menu.asm code_part1/OSTC_code_asm_part1/menu_custom.asm code_part1/OSTC_code_asm_part1/menu_gassetup.asm code_part1/OSTC_code_asm_part1/menu_logbook.asm code_part1/OSTC_code_asm_part1/simulator.asm code_part1/OSTC_code_asm_part1/start.asm code_part1/OSTC_code_asm_part1/surfmode.asm |
diffstat | 9 files changed, 48 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/altimeter.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/altimeter.asm Tue May 17 01:05:04 2011 +0200 @@ -303,6 +303,9 @@ bcf switch_right alt_menu_loop1: ; Wait for button. + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfsc switch_right ; [[MENU]] button bra alt_menu_next
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm Tue May 17 01:05:04 2011 +0200 @@ -24,6 +24,9 @@ test_switches_divemode: ; checks switches in divemode + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfsc switch_left bra test_switches_divemode2 @@ -103,14 +106,14 @@ return test_switches_divemode_menu: + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfsc switch_left bra test_switches_divemode_menu3 btfss switch_right return - btfsc uart_dump_screen ; Asked to dump screen contains ? - call dump_screen ; Yes! - btfsc display_see_deco ; Is the Decoplan displayed? bra divemenu_see_decoplan2 ; Yes, exit menu on left button press
--- a/code_part1/OSTC_code_asm_part1/menu.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu.asm Tue May 17 01:05:04 2011 +0200 @@ -78,7 +78,10 @@ bra menu_loop -check_switches_menu: ; checks switches +check_switches_menu: ; checks switches + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfss switch_right bra check_switches_menu2 bsf menubit3 @@ -424,6 +427,9 @@ bcf switch_left bcf switch_right show_rawdata_loop: + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfsc switch_left ; Ack? bsf menubit2 btfsc switch_right ; Ack?
--- a/code_part1/OSTC_code_asm_part1/menu_custom.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_custom.asm Tue May 17 01:05:04 2011 +0200 @@ -280,16 +280,16 @@ call PLED_menu_cursor customfunctions_loop: - call check_switches_logbook + call check_switches_logbook - btfsc menubit3 - bra customfunctions2 ; Move cursor or generate next page + btfsc menubit3 + bra customfunctions2 ; Move cursor or generate next page - btfsc menubit2 - bra do_customfunction ; call subfunction + btfsc menubit2 + bra do_customfunction ; call subfunction btfsc divemode - goto restart ; dive started during cf menu + goto restart ; dive started during cf menu btfsc onesecupdate call timeout_surfmode @@ -297,15 +297,12 @@ btfsc onesecupdate call set_dive_modes - bcf onesecupdate ; end of 1sek. tasks - - btfsc uart_dump_screen ; Dumps screen contains ? - call dump_screen ; Yes! + bcf onesecupdate ; end of 1sek. tasks btfsc sleepmode - bra exit_customfunctions + bra exit_customfunctions - bra customfunctions_loop + bra customfunctions_loop customfunctions2: incf menupos,F
--- a/code_part1/OSTC_code_asm_part1/menu_gassetup.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_gassetup.asm Tue May 17 01:05:04 2011 +0200 @@ -179,21 +179,21 @@ cpfseq decodata+0 goto menu_gassetup_list - DISPLAYTEXT .11 ; Exit - call wait_switches ; Waits until switches are released, resets flag if button stays pressed! + DISPLAYTEXT .11 ; Exit + call wait_switches ; Waits until switches are released, resets flag if button stays pressed! call PLED_menu_cursor gassetup_list_loop: call check_switches_logbook btfsc menubit3 - bra gassetup_list2 ; move cursor + bra gassetup_list2 ; move cursor btfsc menubit2 - bra do_gassetup_list; call gas-specific submenu + bra do_gassetup_list ; call gas-specific submenu btfsc divemode - goto restart ; dive started! + goto restart ; dive started! btfsc onesecupdate call timeout_surfmode @@ -201,7 +201,7 @@ btfsc onesecupdate call set_dive_modes - bcf onesecupdate ; 1 sec. functions done + bcf onesecupdate ; 1 sec. functions done btfsc sleepmode bra exit_gassetup_list @@ -780,12 +780,6 @@ bcf onesecupdate ; 1 sec. functions done - btfsc uart_dump_screen ; Dumps screen contains ? - call dump_screen ; Yes! - - btfsc sleepmode - bra exit_gassetup - bra next_gas_page_loop next_gas_page2:
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm Tue May 17 01:05:04 2011 +0200 @@ -335,7 +335,7 @@ addwfc sim_pressure+1,F movlw LOW d'164000' ; 164pixel*1000 height movwf xC+0 - movlw HIGH d'164000' ; 164pixel*1000 height + movlw HIGH (d'164000' & h'FFFF') ; 164pixel*1000 height movwf xC+1 movlw UPPER d'164000' ; 164pixel*1000 height movwf xC+2 @@ -1066,6 +1066,10 @@ bsf menubit3 btfsc switch_left bsf menubit2 ; Enter + + btfsc uart_dump_screen ; Dumps screen contains ? + call dump_screen ; Yes! + return next_logbook3:
--- a/code_part1/OSTC_code_asm_part1/simulator.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/simulator.asm Tue May 17 01:05:04 2011 +0200 @@ -196,6 +196,9 @@ bcf switch_left bcf switch_right simulator_show_decoplan2: + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfss onesecupdate bra simulator_show_decoplan3
--- a/code_part1/OSTC_code_asm_part1/start.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/start.asm Tue May 17 01:05:04 2011 +0200 @@ -309,6 +309,9 @@ bcf switch_left bcf switch_right screen1_loop: + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfsc onesecupdate ; do every second tasks? call set_dive_modes ; tests if depth>threshold btfsc onesecupdate ; do every second tasks? @@ -339,6 +342,9 @@ bcf switch_left bcf switch_right screen3_loop: + btfsc uart_dump_screen ; Asked to dump screen contains ? + call dump_screen ; Yes! + btfsc onesecupdate ; do every second tasks? call set_dive_modes ; tests if depth>threshold @@ -356,6 +362,8 @@ return bra screen3_loop ; loop screen +;============================================================================= + first_start: movlw max_custom_number ; Defined in definitions.asm movwf EEDATA
--- a/code_part1/OSTC_code_asm_part1/surfmode.asm Mon May 16 23:52:38 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/surfmode.asm Tue May 17 01:05:04 2011 +0200 @@ -199,6 +199,7 @@ goto uart_115k_bootloader ; Yes! btfsc uart_reset_battery_stats ; Reset Battery stats? goto reset_battery_stats ; Yes! + btfsc uart_dump_screen ; Dumps screen contains ? call dump_screen ; Yes!