comparison code_part1/OSTC_code_asm_part1/menu_custom.asm @ 309:2f21f7a77608

moved cf warning to upper right corner
author heinrichsweikamp
date Sun, 01 May 2011 17:24:53 +0200
parents 53b16a746166
children d36fe3651d56
comparison
equal deleted inserted replaced
308:122324dafba7 309:2f21f7a77608
753 check_failed: 753 check_failed:
754 movlw .63 ; Make sure number is back to range 0..63 754 movlw .63 ; Make sure number is back to range 0..63
755 andwf cf_checker_counter,F 755 andwf cf_checker_counter,F
756 756
757 ; Went wrong: draw the warning line... 757 ; Went wrong: draw the warning line...
758 WIN_TOP .200 758 WIN_TOP .0
759 WIN_LEFT .80 - (6*.7)/2 ; Center 8 chars of width 14pix. 759 WIN_LEFT .125
760 WIN_FONT FT_SMALL 760 WIN_FONT FT_SMALL
761 WIN_INVERT .1 ; Init new Wordprocessor 761 WIN_INVERT .1 ; Init new Wordprocessor
762 call PLED_warnings_color 762 call PLED_warnings_color
763 763
764 STRCPY " CF" 764 STRCPY "CF"
765 movff cf_checker_counter,lo 765 movff cf_checker_counter,lo
766 output_99x 766 output_99x
767 STRCAT_PRINT " " 767 STRCAT_PRINT "!"
768 768
769 ; When failed, increment counter modulo 64, to restart checks. 769 ; When failed, increment counter modulo 64, to restart checks.
770 incf cf_checker_counter,W 770 incf cf_checker_counter,W
771 andlw .63 ; Modulo 64 771 andlw .63 ; Modulo 64
772 movwf cf_checker_counter 772 movwf cf_checker_counter