comparison src/tft_outputs.asm @ 587:e81cf407261a

V2.97 SP1
author heinrichsweikamp
date Sat, 10 Mar 2018 15:34:47 +0100
parents 6636cbe64c6d
children 8a7d2d8bcd33
comparison
equal deleted inserted replaced
586:06642f6ffe59 587:e81cf407261a
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File tft_outputs.asm REFACTORED VERSION V2.98 3 ; File tft_outputs.asm REFACTORED VERSION V2.97 SP1
4 ; 4 ;
5 ; Startup subroutines 5 ; Startup subroutines
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
3025 3025
3026 ;============================================================================= 3026 ;=============================================================================
3027 ; Writes ostc #Serial and Firmware version in splash screen 3027 ; Writes ostc #Serial and Firmware version in splash screen
3028 3028
3029 global TFT_serial 3029 global TFT_serial
3030 TFT_serial: 3030 TFT_serial:
3031 WIN_TINY .5,.225 3031 WIN_TINY .5,.225
3032 STRCPY "OSTC" ; Won't translate that... 3032 STRCPY "OSTC" ; Won't translate that...
3033 3033
3034 movlw 0x0A 3034 movlw 0x0A
3035 cpfseq hardware_flag 3035 cpfseq hardware_flag
3039 TFT_serial2: 3039 TFT_serial2:
3040 movlw 0x05 3040 movlw 0x05
3041 cpfseq hardware_flag 3041 cpfseq hardware_flag
3042 bra TFT_serial3 3042 bra TFT_serial3
3043 STRCAT " cR #" 3043 STRCAT " cR #"
3044 bra TFT_serial_common 3044 bra TFT_serial_common
3045 TFT_serial3: 3045 TFT_serial3:
3046 movlw 0x11 3046 movlw 0x11
3047 cpfseq hardware_flag 3047 cpfseq hardware_flag
3048 bra TFT_serial4 3048 bra TFT_serial4
3049 STRCAT "2 #" 3049 STRCAT "2 #"
3063 3063
3064 ifdef __DEBUG 3064 ifdef __DEBUG
3065 movlw color_grey ; Write header in blue when 3065 movlw color_grey ; Write header in blue when
3066 call TFT_set_color ; compiled in DEBUG mode... 3066 call TFT_set_color ; compiled in DEBUG mode...
3067 STRCAT_PRINT "DEBUG" 3067 STRCAT_PRINT "DEBUG"
3068 call TFT_standard_color
3069 bcf win_invert
3070 return
3068 else 3071 else
3072 movlw softwareversion_beta ; =1: Beta, =0: Release, >= 2: Service Pack
3073 tstfsz WREG ; release?
3074 bra TFT_serial_6 ; NO
3075 bra TFT_serial_8 ; YES
3076 TFT_serial_6:
3077 decfsz WREG,F ; Beta?
3078 bra TFT_serial_7 ; NO
3079 STRCAT_PRINT "" ; YES
3080 call TFT_warnings_color ;
3081 WIN_LEFT .160-4*9/2 ; Right pad
3082 STRCPY_TEXT tBeta
3083 bra TFT_serial_8
3084 TFT_serial_7:
3085 STRCAT " SP"
3086 movlw softwareversion_beta ; STRCAT destroyed WREG
3087 decf WREG,W
3088 movwf lo
3089 bsf leftbind
3090 output_8
3091 bcf leftbind
3092 TFT_serial_8:
3069 STRCAT_PRINT "" 3093 STRCAT_PRINT ""
3070 bcf win_invert ; Reset invert flag
3071 call TFT_standard_color 3094 call TFT_standard_color
3072 3095 bcf win_invert
3073 movlw softwareversion_beta ; =1: Beta, =0: Release 3096 return
3074 decfsz WREG,F
3075 return ; Release version -> Return
3076
3077 call TFT_warnings_color
3078 WIN_LEFT .160-4*9/2 ; Right pad.
3079 STRCPY_TEXT_PRINT tBeta
3080 endif 3097 endif
3081 call TFT_standard_color
3082 bcf win_invert
3083 return
3084 3098
3085 3099
3086 ;============================================================================= 3100 ;=============================================================================
3087 ; For the Information menu: append firmware x.yy version. 3101 ; For the Information menu: append firmware x.yy version.
3088 3102
3123 cpfsgt day ; > threshold? 3137 cpfsgt day ; > threshold?
3124 return 3138 return
3125 3139
3126 ; Show in "change firmware" style 3140 ; Show in "change firmware" style
3127 movlw color_yellow 3141 movlw color_yellow
3128 bcf win_invert 3142 bcf win_invert
3129 goto TFT_set_color ; and return... 3143 goto TFT_set_color ; and return...
3130 3144
3131 ;----------------------------------------------------------------------------- 3145 ;-----------------------------------------------------------------------------
3132 ; For the Information menu: append serial number 3146 ; For the Information menu: append serial number
3133 3147