comparison code_part1/OSTC_code_asm_part1/menu.asm @ 188:caf6153b26cb

new sensor raw data menu
author heinrichsweikamp
date Wed, 09 Feb 2011 17:16:07 +0100
parents f720ce017244
children ceedf078b2d8
comparison
equal deleted inserted replaced
187:3b5f81c06db8 188:caf6153b26cb
357 bcf switch_right 357 bcf switch_right
358 358
359 more_setup_menu_loop: 359 more_setup_menu_loop:
360 call check_switches_menu 360 call check_switches_menu
361 361
362 movlw d'4' ; x-1 menu entries 362 movlw d'5' ; x-1 menu entries
363 cpfseq menupos 363 cpfseq menupos
364 bra more_setup_menu_loop2 364 bra more_setup_menu_loop2
365 movlw d'6' 365 movlw d'6'
366 movwf menupos 366 movwf menupos
367 call PLED_menu_cursor 367 call PLED_menu_cursor
398 dcfsnz menupos,F 398 dcfsnz menupos,F
399 bra toggle_debugmode 399 bra toggle_debugmode
400 dcfsnz menupos,F 400 dcfsnz menupos,F
401 bra show_license 401 bra show_license
402 dcfsnz menupos,F 402 dcfsnz menupos,F
403 bra setup_menu ; spare 403 bra show_rawdata
404 dcfsnz menupos,F 404 dcfsnz menupos,F
405 bra setup_menu ; spare 405 bra setup_menu ; spare
406 movlw d'5' ; set cursor to "More again" 406 movlw d'5' ; set cursor to "More again"
407 movwf menupos 407 movwf menupos
408 bra setup_menu2 ; exit... 408 bra setup_menu2 ; exit...
409
410 show_rawdata: ; Displays Sensor raw data
411 call PLED_ClearScreen
412 call PLED_topline_box
413 WIN_INVERT .1 ; Init new Wordprocessor
414 DISPLAYTEXTH .296 ; Raw Data:
415 WIN_INVERT .0 ; Init new Wordprocessor
416
417 call PLED_static_raw_data
418
419 clrf timeout_counter2
420 bcf sleepmode
421 bcf menubit2
422 bcf menubit3
423 bsf menubit
424 bcf switch_left
425 bcf switch_right
426 show_rawdata_loop:
427 btfsc switch_left ; Ack?
428 bsf menubit2
429 btfsc switch_right ; Ack?
430 bsf menubit2
431
432 btfsc menubit2
433 bra show_rawdata_exit
434
435 btfss menubit
436 goto restart ; exit menu, restart and enter surfmode
437
438 btfsc onesecupdate
439 call timeout_surfmode
440
441 btfsc onesecupdate
442 call PLED_update_raw_data
443
444 btfsc onesecupdate
445 call set_dive_modes
446
447 bcf onesecupdate ; End of one second tasks
448
449 btfsc sleepmode
450 bra show_rawdata_exit ; Exit
451
452 btfsc divemode
453 goto restart ; exit menu, restart and enter divemode
454
455 bra show_rawdata_loop
456
457 show_rawdata_exit:
458 movlw d'4'
459 movwf menupos
460 bcf switch_right
461 bra more_setup_menu2 ; return to "more menu" loop
409 462
410 show_license: 463 show_license:
411 call startup_screen1 ;1/2 464 call startup_screen1 ;1/2
412 call startup_screen2 ;1/2 465 call startup_screen2 ;1/2
413 movlw d'3' 466 movlw d'3'