Mercurial > public > hwos_code
comparison src/customview.asm @ 254:5fe7aff622f3
preparations to set a course for the compass display
| author | heinrichsweikamp |
|---|---|
| date | Fri, 20 Mar 2015 10:16:49 +0100 |
| parents | 94bf757690cf |
| children | 5b4ef0b9090d |
comparison
equal
deleted
inserted
replaced
| 253:b0fbb212ecb7 | 254:5fe7aff622f3 |
|---|---|
| 239 movlw divemode_menuview_timeout | 239 movlw divemode_menuview_timeout |
| 240 movwf timeout_counter3 | 240 movwf timeout_counter3 |
| 241 bsf menuview | 241 bsf menuview |
| 242 bcf switch_left | 242 bcf switch_left |
| 243 incf menupos2,F ; Number of options to show | 243 incf menupos2,F ; Number of options to show |
| 244 movlw d'8' ; Max number of options in divemode | 244 movlw d'9' ; Max number of options in divemode |
| 245 cpfsgt menupos2 ; Max reached? | 245 cpfsgt menupos2 ; Max reached? |
| 246 bra menuview_mask ; No, show | 246 bra menuview_mask ; No, show |
| 247 global menuview_toggle_reset | 247 global menuview_toggle_reset |
| 248 menuview_toggle_reset: ; Timeout occured | 248 menuview_toggle_reset: ; Timeout occured |
| 249 clrf menupos2 | 249 clrf menupos2 |
| 261 WIN_SMALL divemode_simtext_column,divemode_simtext_row | 261 WIN_SMALL divemode_simtext_column,divemode_simtext_row |
| 262 movff menupos2,WREG ; Menupos2 holds number of menu option to show | 262 movff menupos2,WREG ; Menupos2 holds number of menu option to show |
| 263 dcfsnz WREG,F | 263 dcfsnz WREG,F |
| 264 bra menuview_view_gaschange ; If a better gas is indicated | 264 bra menuview_view_gaschange ; If a better gas is indicated |
| 265 dcfsnz WREG,F | 265 dcfsnz WREG,F |
| 266 bra menuview_view1 | 266 bra menuview_view1 ; "Menu?" (Not in Gauge and Anpnoe) |
| 267 dcfsnz WREG,F | 267 dcfsnz WREG,F |
| 268 bra menuview_view2 | 268 bra menuview_view2 ; "Quit Simulation?" (Sim only) |
| 269 dcfsnz WREG,F | 269 dcfsnz WREG,F |
| 270 bra menuview_view3 | 270 bra menuview_view3 ; "Descent 1m" (Sim only) |
| 271 dcfsnz WREG,F | 271 dcfsnz WREG,F |
| 272 bra menuview_view4 | 272 bra menuview_view4 ; "Ascend 1m" (Sim only) |
| 273 dcfsnz WREG,F | 273 dcfsnz WREG,F |
| 274 bra menuview_view5 | 274 bra menuview_view5 ; "Quit Apnea mode?" (Apnea only) |
| 275 dcfsnz WREG,F | 275 dcfsnz WREG,F |
| 276 bra menuview_view6 | 276 bra menuview_view6 ; "Reset Avr." (Gauge only) |
| 277 dcfsnz WREG,F | 277 dcfsnz WREG,F |
| 278 bra menuview_view7 | 278 bra menuview_view7 ; "Sim:+5mins" (Sim only) |
| 279 dcfsnz WREG,F | |
| 280 bra menuview_view8 ; "Heading" (When compass is shown) | |
| 279 menuview_exit: | 281 menuview_exit: |
| 280 call TFT_standard_color | 282 call TFT_standard_color |
| 281 bcf win_invert ; Reset invert flag | 283 bcf win_invert ; Reset invert flag |
| 282 return ; Menupos2 = 0, Show nothing | 284 return ; Menupos2 = 0, Show nothing |
| 283 | 285 |
| 304 STRCPY_TEXT_PRINT tDivePreMenu ; "Menu?" | 306 STRCPY_TEXT_PRINT tDivePreMenu ; "Menu?" |
| 305 bra menuview_exit ; Done. | 307 bra menuview_exit ; Done. |
| 306 menuview_view2: | 308 menuview_view2: |
| 307 btfss simulatormode_active ; View only for simulator mode | 309 btfss simulatormode_active ; View only for simulator mode |
| 308 bra menuview_toggle ; Call next option | 310 bra menuview_toggle ; Call next option |
| 309 STRCPY_TEXT_PRINT tQuitSim ;"Quit Simulation?" | 311 STRCPY_TEXT_PRINT tQuitSim ; "Quit Simulation?" |
| 310 bra menuview_exit ; Done. | 312 bra menuview_exit ; Done. |
| 311 menuview_view3: | 313 menuview_view3: |
| 312 btfss simulatormode_active ; View only for simulator mode | 314 btfss simulatormode_active ; View only for simulator mode |
| 313 bra menuview_toggle ; Call next option | 315 bra menuview_toggle ; Call next option |
| 314 STRCPY_TEXT_PRINT tDescent1m ; "Descent 1m" | 316 STRCPY_TEXT_PRINT tDescent1m ; "Descent 1m" |
| 338 bra menuview_toggle ; Yes, call next option | 340 bra menuview_toggle ; Yes, call next option |
| 339 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 341 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
| 340 bra menuview_toggle ; Yes, call next option | 342 bra menuview_toggle ; Yes, call next option |
| 341 STRCPY_TEXT_PRINT tplus5min ; "Sim:+5mins" | 343 STRCPY_TEXT_PRINT tplus5min ; "Sim:+5mins" |
| 342 bra menuview_exit ; Done. | 344 bra menuview_exit ; Done. |
| 345 menuview_view8: | |
| 346 movlw .6 | |
| 347 cpfseq menupos3 ; in compass view? | |
| 348 bra menuview_toggle ; No, call next option | |
| 349 STRCPY_TEXT_PRINT tSetHeading ; "Heading" | |
| 350 bra menuview_exit ; Done. | |
| 343 | 351 |
| 344 | 352 |
| 345 ;============================================================================= | 353 ;============================================================================= |
| 346 ; Show next customview (and delete this flag) | 354 ; Show next customview (and delete this flag) |
| 347 global customview_toggle | 355 global customview_toggle |
