Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 76:a5ea132770db
1.21 release
author | heinrichsweikamp |
---|---|
date | Wed, 19 Feb 2014 14:46:26 +0100 |
parents | 7815bf21d353 |
children | eb72c8865f47 |
comparison
equal
deleted
inserted
replaced
75:b808fa26a9a1 | 76:a5ea132770db |
---|---|
2911 bsf leftbind | 2911 bsf leftbind |
2912 movff divesecs,lo | 2912 movff divesecs,lo |
2913 output_99x | 2913 output_99x |
2914 bcf leftbind | 2914 bcf leftbind |
2915 STRCAT_PRINT "" ; Show seconds in small font | 2915 STRCAT_PRINT "" ; Show seconds in small font |
2916 | |
2917 return | 2916 return |
2918 | 2917 |
2919 ;============================================================================= | 2918 ;============================================================================= |
2920 ; Writes ostc3 #Serial and Firmware version in splash screen | 2919 ; Writes ostc3 #Serial and Firmware version in splash screen |
2921 ; | 2920 ; |
2922 global TFT_serial | 2921 global TFT_serial |
2923 TFT_serial: | 2922 TFT_serial: |
2924 WIN_TINY .0,.239-.14 | 2923 WIN_TINY .0,.239-.14 |
2925 | |
2926 STRCPY "OSTC3 #" ; Won't translate that... | 2924 STRCPY "OSTC3 #" ; Won't translate that... |
2927 rcall TFT_cat_serial | 2925 rcall TFT_cat_serial |
2928 | 2926 |
2929 STRCAT " v" | 2927 STRCAT " v" |
2930 rcall TFT_cat_firmware | 2928 rcall TFT_cat_firmware |
2931 | 2929 |
2932 ifdef __DEBUG | 2930 ifdef __DEBUG |
2933 movlw color_grey ; Write header in blue when | 2931 movlw color_grey ; Write header in blue when |
2934 call TFT_set_color ; compiled in DEBUG mode... | 2932 call TFT_set_color ; compiled in DEBUG mode... |
2935 STRCAT_PRINT "DEBUG" | 2933 STRCAT_PRINT "DEBUG" |
2934 else | |
2935 WIN_COLOR color_greenish | |
2936 STRCAT_PRINT "" | |
2936 call TFT_standard_color | 2937 call TFT_standard_color |
2937 else | 2938 |
2938 call TFT_standard_color | |
2939 STRCAT_PRINT "" | |
2940 | |
2941 movlw softwareversion_beta ; =1: Beta, =0: Release | 2939 movlw softwareversion_beta ; =1: Beta, =0: Release |
2942 decfsz WREG,F | 2940 decfsz WREG,F |
2943 return ; Release version -> Return | 2941 return ; Release version -> Return |
2944 | 2942 |
2945 call TFT_warnings_color | 2943 call TFT_warnings_color |
2946 WIN_LEFT .160-4*9/2 ; Right pad. | 2944 WIN_LEFT .160-4*9/2 ; Right pad. |
2947 STRCPY_TEXT_PRINT tBeta | 2945 STRCPY_TEXT_PRINT tBeta |
2948 call TFT_standard_color | |
2949 endif | 2946 endif |
2950 | 2947 call TFT_standard_color |
2951 return | 2948 return |
2952 | 2949 |
2953 | 2950 |
2954 | 2951 |
2955 ;============================================================================= | 2952 ;============================================================================= |
2957 global info_menu_firmware | 2954 global info_menu_firmware |
2958 extern tFirmware | 2955 extern tFirmware |
2959 info_menu_firmware: | 2956 info_menu_firmware: |
2960 lfsr FSR1,tFirmware | 2957 lfsr FSR1,tFirmware |
2961 call strcat_text | 2958 call strcat_text |
2959 global TFT_cat_firmware | |
2962 TFT_cat_firmware: | 2960 TFT_cat_firmware: |
2963 movlw softwareversion_x | 2961 movlw softwareversion_x |
2964 movwf lo | 2962 movwf lo |
2965 bsf leftbind | 2963 bsf leftbind |
2966 output_8 | 2964 output_8 |
2976 global info_menu_serial | 2974 global info_menu_serial |
2977 extern tSerial | 2975 extern tSerial |
2978 info_menu_serial: | 2976 info_menu_serial: |
2979 lfsr FSR1,tSerial | 2977 lfsr FSR1,tSerial |
2980 call strcat_text | 2978 call strcat_text |
2979 global TFT_cat_serial | |
2981 TFT_cat_serial: | 2980 TFT_cat_serial: |
2982 clrf EEADRH | 2981 clrf EEADRH |
2983 clrf EEADR ; Get Serial number LOW | 2982 clrf EEADR ; Get Serial number LOW |
2984 call read_eeprom ; read byte | 2983 call read_eeprom ; read byte |
2985 movff EEDATA,lo | 2984 movff EEDATA,lo |