Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/simulator.asm @ 64:e8756eba54ee
1.71beta - more deco
author | heinrichsweikamp |
---|---|
date | Sat, 02 Oct 2010 23:34:08 +0200 |
parents | fee7c62b4de1 |
children | d0b677e1e9a5 |
comparison
equal
deleted
inserted
replaced
63:fee7c62b4de1 | 64:e8756eba54ee |
---|---|
156 simulator_show_decoplan: | 156 simulator_show_decoplan: |
157 call PLED_ClearScreen | 157 call PLED_ClearScreen |
158 call PLED_simdata_screen | 158 call PLED_simdata_screen |
159 call divemenu_see_decoplan | 159 call divemenu_see_decoplan |
160 | 160 |
161 call enable_rs232 | 161 call enable_rs232 |
162 lfsr FSR0,0x250 | 162 lfsr FSR0,0x250 |
163 movlw 0x20 | 163 movlw 0x20 |
164 movwf wait_temp | 164 movwf wait_temp |
165 xy: ; Clear Deco list | 165 xy: ; Clear Deco list |
166 movff POSTINC0,TXREG | 166 movff POSTINC0,TXREG |
167 call rs232_wait_tx | 167 call rs232_wait_tx |
168 decfsz wait_temp,F | 168 decfsz wait_temp,F |
169 bra xy | 169 bra xy |
170 movff char_O_array_decodepth+0,TXREG | |
170 | 171 |
171 | 172 |
172 | 173 |
173 WIN_INVERT .1 ; Init new Wordprocessor | 174 WIN_INVERT .1 ; Init new Wordprocessor |
174 DISPLAYTEXT .188 ; Sim. Results: | 175 DISPLAYTEXT .188 ; Sim. Results: |
175 WIN_INVERT .0 ; Init new Wordprocessor | 176 WIN_INVERT .0 ; Init new Wordprocessor |
176 | 177 |
178 simulator_show_decoplan1: | |
177 bcf switch_left | 179 bcf switch_left |
178 bcf switch_right | 180 bcf switch_right |
179 | |
180 simulator_show_decoplan2: | 181 simulator_show_decoplan2: |
181 btfss onesecupdate | 182 btfss onesecupdate |
182 bra simulator_show_decoplan3 | 183 bra simulator_show_decoplan3 |
183 | 184 |
184 call timeout_surfmode | 185 call timeout_surfmode |
187 call get_battery_voltage ; get battery voltage | 188 call get_battery_voltage ; get battery voltage |
188 | 189 |
189 bcf onesecupdate ; End of one second tasks | 190 bcf onesecupdate ; End of one second tasks |
190 | 191 |
191 simulator_show_decoplan3: | 192 simulator_show_decoplan3: |
192 btfsc switch_left | |
193 bra simulator_show_decoplan4 ; Quit display | |
194 | |
195 btfsc switch_right | 193 btfsc switch_right |
196 bra simulator_show_decoplan4 ; Quit display | 194 bra simulator_show_decoplan4 ; Quit display |
197 | 195 |
196 btfsc switch_left | |
197 bra simulator_show_decoplan5 ; Quit display or new Decoplan-Page (GF Mode only) | |
198 | |
198 btfsc sleepmode | 199 btfsc sleepmode |
199 goto more_menu | 200 goto more_menu |
200 | 201 |
201 btfsc divemode | 202 btfsc divemode |
202 goto restart ; exit menu, restart and enter divemode | 203 goto restart ; exit menu, restart and enter divemode |
203 | 204 |
204 bra simulator_show_decoplan2 | 205 bra simulator_show_decoplan2 |
206 | |
207 simulator_show_decoplan5: | |
208 btfsc multi_gf_display ; Next Page in Multi-GF Screen? | |
209 bra simulator_show_decoplan5_1 ; Yes! | |
210 simulator_show_decoplan5_0: | |
211 | |
212 bcf display_see_deco ; clear flag | |
213 bra simulator_show_decoplan4 ; Quit | |
214 | |
215 simulator_show_decoplan5_1: | |
216 incf temp8,F | |
217 btfsc last_ceiling_gf_shown ; last ceiling shown? | |
218 bra simulator_show_decoplan5_0 ; All done, clear and return | |
219 | |
220 call PLED_decoplan_gf_page_current ; Re-Draw Current page of GF Decoplan | |
221 bra simulator_show_decoplan1 | |
205 | 222 |
206 simulator_show_decoplan4: | 223 simulator_show_decoplan4: |
207 movlw d'5' | 224 movlw d'5' |
208 movwf menupos | 225 movwf menupos |
209 bra menu_simulator1 | 226 bra menu_simulator1 |