comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 130:d721b49b8934

Fixed profile view (Logbook)
author Heinrichsweikamp
date Tue, 04 Jan 2011 17:41:13 +0100
parents 6a94f96e9cea
children 8b75ba28d641
comparison
equal deleted inserted replaced
129:06c4899ddb4b 130:d721b49b8934
581 ; First, check if xC+0>apnoe_mins or xC+0<aponoe_mins 581 ; First, check if xC+0>apnoe_mins or xC+0<aponoe_mins
582 movf xC+0,W 582 movf xC+0,W
583 cpfseq apnoe_mins ; xC+0 = apone_mins? 583 cpfseq apnoe_mins ; xC+0 = apone_mins?
584 bra profile_display_fill2 ; No! 584 bra profile_display_fill2 ; No!
585 return 585 return
586
586 profile_display_fill2: 587 profile_display_fill2:
587 movf xC+0,W 588 movf xC+0,W
588 cpfsgt apnoe_mins ; apnoe_mins>xC+0? 589 cpfsgt apnoe_mins ; apnoe_mins>xC+0?
589 bra profile_display_fill_up ; Yes! 590 bra profile_display_fill_up ; Yes!
590 591
592 movff apnoe_mins,xC+1 ; Copy 593 movff apnoe_mins,xC+1 ; Copy
593 profile_display_fill_down2: ; Loop 594 profile_display_fill_down2: ; Loop
594 decf xC+1,F 595 decf xC+1,F
595 movf xC+1,W ; Row 596 movf xC+1,W ; Row
596 call PLED_SetRow ; 0...259 597 call PLED_SetRow ; 0...259
598
597 call PLED_standard_color 599 call PLED_standard_color
598 600
599 call PLED_PxlWrite_Single; Write one Pixel 601 call PLED_PxlWrite_Single; Write one Pixel
600 movf xC+0,W 602 movf xC+0,W
601 cpfseq xC+1 ; Loop until xC+1=xC+0 603 cpfseq xC+1 ; Loop until xC+1=xC+0
606 movff xC+0,xC+1 ; Copy 608 movff xC+0,xC+1 ; Copy
607 profile_display_fill_up2: ; Loop 609 profile_display_fill_up2: ; Loop
608 decf xC+1,F 610 decf xC+1,F
609 movf xC+1,W ; Row 611 movf xC+1,W ; Row
610 call PLED_SetRow ; 0...259 612 call PLED_SetRow ; 0...259
613
611 call PLED_standard_color 614 call PLED_standard_color
612 615
613 call PLED_PxlWrite_Single; Write one Pixel 616 call PLED_PxlWrite_Single; Write one Pixel
614 movf apnoe_mins,W 617 movf apnoe_mins,W
615 cpfseq xC+1 ; Loop until xC+1=apnoe_mins 618 cpfseq xC+1 ; Loop until xC+1=apnoe_mins