comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 142:8b75ba28d641

Screen-flipping custom function. - Fix bank safe addressings.
author JeanDo
date Fri, 07 Jan 2011 03:01:02 +0100
parents d721b49b8934
children c09b0be2e1e6
comparison
equal deleted inserted replaced
141:622da16b768f 142:8b75ba28d641
518 btfsc STATUS,C ; Ignore potential profile errors 518 btfsc STATUS,C ; Ignore potential profile errors
519 movff apnoe_mins,xC+0 519 movff apnoe_mins,xC+0
520 520
521 call profile_display_fill ; In this column between this row (xC+0) and the last row (apnoe_mins) 521 call profile_display_fill ; In this column between this row (xC+0) and the last row (apnoe_mins)
522 movff xC+0,apnoe_mins ; Store last row for fill routine 522 movff xC+0,apnoe_mins ; Store last row for fill routine
523 incf timeout_counter3,F
524
523 movf xC+0,W 525 movf xC+0,W
524 call PLED_SetRow ; 0...259 526 call PLED_SetRow ; 0...259
525 527
526 incf timeout_counter3,F
527 movf timeout_counter3,W 528 movf timeout_counter3,W
528 call PLED_SetColumnPixel ; pixel x2 529 call PLED_SetColumnPixel ; pixel x2
529 call PLED_standard_color 530 call PLED_standard_color
530 call PLED_PxlWrite ; Write two pixels 531 call PLED_PxlWrite ; Write two pixels
531 532
591 592
592 profile_display_fill_down: ; Fill downwards from apone_mins to xC+0! 593 profile_display_fill_down: ; Fill downwards from apone_mins to xC+0!
593 movff apnoe_mins,xC+1 ; Copy 594 movff apnoe_mins,xC+1 ; Copy
594 profile_display_fill_down2: ; Loop 595 profile_display_fill_down2: ; Loop
595 decf xC+1,F 596 decf xC+1,F
597
596 movf xC+1,W ; Row 598 movf xC+1,W ; Row
597 call PLED_SetRow ; 0...259 599 call PLED_SetRow ; 0...259
598 600
599 call PLED_standard_color 601 call PLED_standard_color
600
601 call PLED_PxlWrite_Single; Write one Pixel 602 call PLED_PxlWrite_Single; Write one Pixel
603
602 movf xC+0,W 604 movf xC+0,W
603 cpfseq xC+1 ; Loop until xC+1=xC+0 605 cpfseq xC+1 ; Loop until xC+1=xC+0
604 bra profile_display_fill_down2 606 bra profile_display_fill_down2
605 return ; apnoe_mins and xC+0 are untouched 607 return ; apnoe_mins and xC+0 are untouched
606 608
607 profile_display_fill_up: ; Fill upwards from xC+0 to apone_mins! 609 profile_display_fill_up: ; Fill upwards from xC+0 to apone_mins!
608 movff xC+0,xC+1 ; Copy 610 movff xC+0,xC+1 ; Copy
609 profile_display_fill_up2: ; Loop 611 profile_display_fill_up2: ; Loop
610 decf xC+1,F 612 decf xC+1,F
613
611 movf xC+1,W ; Row 614 movf xC+1,W ; Row
612 call PLED_SetRow ; 0...259 615 call PLED_SetRow ; 0...259
613 616
614 call PLED_standard_color 617 call PLED_standard_color
615
616 call PLED_PxlWrite_Single; Write one Pixel 618 call PLED_PxlWrite_Single; Write one Pixel
619
617 movf apnoe_mins,W 620 movf apnoe_mins,W
618 cpfseq xC+1 ; Loop until xC+1=apnoe_mins 621 cpfseq xC+1 ; Loop until xC+1=apnoe_mins
619 bra profile_display_fill_up2 622 bra profile_display_fill_up2
620 return ; apnoe_mins and xC+0 are untouched 623 return ; apnoe_mins and xC+0 are untouched
621 624