Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu.asm @ 297:ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
author | Heinrichsweikamp |
---|---|
date | Fri, 29 Apr 2011 20:17:32 +0200 |
parents | caf6153b26cb |
children | 6bdf80d7276c |
comparison
equal
deleted
inserted
replaced
296:2986e7cdb68c | 297:ceedf078b2d8 |
---|---|
43 bcf menubit3 | 43 bcf menubit3 |
44 bsf menubit | 44 bsf menubit |
45 bsf cursor | 45 bsf cursor |
46 call PLED_menu_mask | 46 call PLED_menu_mask |
47 call PLED_menu_cursor | 47 call PLED_menu_cursor |
48 bcf switch_left | 48 rcall wait_switches |
49 bcf switch_right | |
50 | 49 |
51 menu_loop: | 50 menu_loop: |
52 call check_switches_menu | 51 call check_switches_menu |
53 | 52 |
54 btfsc menubit2 | 53 btfsc menubit2 |
55 bra do_menu ; call submenu | 54 bra do_menu ; call submenu |
56 | 55 |
57 btfss menubit | 56 btfss menubit |
58 goto restart ; exit menu, restart | 57 goto restart ; exit menu, restart |
59 | 58 |
60 btfsc onesecupdate | 59 btfsc onesecupdate |
79 | 78 |
80 bra menu_loop | 79 bra menu_loop |
81 | 80 |
82 check_switches_menu: ; checks switches | 81 check_switches_menu: ; checks switches |
83 btfss switch_right | 82 btfss switch_right |
84 bra check_switches_menu2 | 83 bra check_switches_menu2 |
85 bsf menubit3 | 84 bsf menubit3 |
86 incf menupos,F | 85 incf menupos,F |
87 movlw d'6' | 86 movlw d'6' |
88 cpfsgt menupos | 87 cpfsgt menupos |
89 bra refresh_cursor | 88 bra refresh_cursor |
90 movlw d'1' | 89 movlw d'1' |
91 movwf menupos | 90 movwf menupos |
92 bra refresh_cursor | 91 bra refresh_cursor |
93 check_switches_menu2: | 92 check_switches_menu2: |
94 btfsc switch_left | 93 btfsc switch_left |
95 bsf menubit2 ; Enter! | 94 bsf menubit2 ; Enter! |
96 return | 95 return |
97 | 96 |
113 refresh_cursor: | 112 refresh_cursor: |
114 clrf timeout_counter2 | 113 clrf timeout_counter2 |
115 btfsc cursor | 114 btfsc cursor |
116 call PLED_menu_cursor | 115 call PLED_menu_cursor |
117 bcf switch_right | 116 bcf switch_right |
117 bcf switch_left | |
118 return | 118 return |
119 | 119 |
120 more_menu: | 120 more_menu: |
121 movlw d'1' | 121 movlw d'1' |
122 movwf menupos | 122 movwf menupos |