Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu.asm @ 129:06c4899ddb4b
Custom views in dive mode configrable (New CF50-CF53)
Total Average Depth (Non-Resetable)
Some Display fixes in Divemode
Bugfix Timeout reset in Surfacemode
author | Heinrichsweikamp |
---|---|
date | Tue, 04 Jan 2011 16:32:28 +0100 |
parents | 2907b42c195b |
children | 53b16a746166 |
comparison
equal
deleted
inserted
replaced
127:245de99d1d15 | 129:06c4899ddb4b |
---|---|
26 wait_switches: | 26 wait_switches: |
27 bcf switch_left | 27 bcf switch_left |
28 bcf switch_right | 28 bcf switch_right |
29 return | 29 return |
30 | 30 |
31 ; movlw d'40' | |
32 ; btfss button_delay_done ; Start counting? | |
33 ; movlw d'200' | |
34 ; movwf switch_timeout | |
35 ; | |
36 ;wait_switches1: | |
37 ; WAITMS d'5' | |
38 ; btfsc SWITCH2 | |
39 ; bra wait_switches2 ; Check other switch | |
40 ; | |
41 ; decfsz switch_timeout,F | |
42 ; bra wait_switches1 | |
43 ; | |
44 ; btfsc SWITCH2 | |
45 ; bra wait_switches3 | |
46 ; | |
47 ; bsf button_delay_done ; Start counting | |
48 ; bsf switch_left ; Set button flag | |
49 ; bcf switch_right ; only for the other button | |
50 ;; bcf LEDg | |
51 ; return | |
52 ; | |
53 ;wait_switches2: | |
54 ; btfss SWITCH1 | |
55 ; bra wait_switches1 ; Wait | |
56 ; | |
57 ; ; Yes, both switches released before timeout... | |
58 ;wait_switches3: | |
59 ; bcf switch_left | |
60 ; bcf switch_right | |
61 ; bcf button_delay_done | |
62 ; bcf LED_red | |
63 ; return | |
64 ; | |
65 menu: | 31 menu: |
66 bcf deco_mode_changed ; Clear flag (Description is only showed once) | 32 bcf deco_mode_changed ; Clear flag (Description is only showed once) |
67 bcf LED_blue | 33 bcf LED_blue |
68 movlw d'1' | 34 movlw d'1' |
69 movwf menupos | 35 movwf menupos |