;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Copyright (c) 2002 TIMEX Corporation.
; 
; This document is the property of, and contains information proprietary to
; TIMEX Corporation.  It is to be returned upon request.  Reproduction by any
; means, disclosure, or use of its contents for other than the expressed
; purpose for which it is loaned, without the written consent of TIMEX
; Corporation, is strictly prohibited.
;
; File Name      : utlDspMc.h
;
; Macro Names    : UTL_DISPLAY_DAY_OF_WEEK          - Displays the Day Of Week on the small dot matrix.
;                  
;                  UTL_DISPLAY_HR_MIN_DATA_L1       - Displays a fixed-width hour and minute data on 
;                                                       line 1.
;                                                     Displays the colon between the hour and minute.
;                                                     Displays either in 12 or 24 hour format.  This 
;                                                       will depend on the PTZ format.
;                                                     Displays 'AM' or 'PM'.  This will depend on the 
;                                                       PTZ format.
;
;                  UTL_DISPLAY_HR_MIN_DATA_L2       - Displays a fixed-width hour and minute data on 
;                                                       line 2.
;                                                     Displays the colon between the hour and minute.
;                                                     Displays either in 12 or 24 hour format.  This 
;                                                       will depend on the PTZ format.
;                                                     Displays 'AM' or 'PM'.  This will depend on the 
;                                                       PTZ format.
;
;                  UTL_DISPLAY_DATE_COMPLETE_AND_DOW- Displays the complete Date of an application 
;                                                        based from the primary timezone configuration 
;                                                        including the DOW.
;                  
;                  UTL_DISPLAY_DATE_COMPLETE        - Displays the complete Date of an application 
;                                                       based from the primary timezone configuration.
;                  
;                  
;
;                  
;
;
; Purpose        : Utility to display day of week and hour and minute data.
;
; Change History : 
;
;               02/12/2002 FSU - Created for M851 development.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTL_DISPLAY_DAY_OF_WEEK
;
; Description : Displays the Day Of Week on the small dot matrix.
;
; Assumptions : None
;
; Usage       : UTL_DISPLAY_DAY_OF_WEEK
;               
; Input(s)    : AReg - Day of week to be displayed.
;                       0 - SU
;                       1 - MO
;                       .......
;                       5 - FR
;                       6 - SA
;               
; Output(s)   : None
;   
;               ( Destroyed: None )
;
; Macro Change History : 
;
;               02/12/2002 FSU - Created for M851 development.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                        
UTL_DISPLAY_DAY_OF_WEEK     MACRO

                car     utlDisplayDayOfWeek
                                
        CALLS   SUBROUTINE, 'utlDisplayDayOfWeek'
       
        ENDM
              

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTL_DISPLAY_HR_MIN_DATA_L1 - Displays a fixed-width hour and 
;                                               minute data on line 1.
;
;               UTL_DISPLAY_HR_MIN_DATA_L2 - Displays a fixed-width hour and 
;                                               minute data on line 2.
;
; Description : Displays the colon between the hour and minute.
;               Displays either in 12 or 24 hour format.  This will depend on the PTZ format.
;               Displays 'AM' or 'PM'.  This will depend on the PTZ format.
;
; Assumptions : Data structure: Minute, Hour
;               
; Usage       : UTL_DISPLAY_HR_MIN_DATA_L1
;               UTL_DISPLAY_HR_MIN_DATA_L2
;               
; Input(s)    : HLReg - address of the minute data.
;
; Output(s)   : None   
;           
;               ( Destroyed: IYReg )    
;
; Macro Change History : 
;
;               02/12/2002 FSU - Created for M851 development.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                        
UTL_DISPLAY_HR_MIN_DATA_L1  MACRO

                ld      IY, #utlDispAddrHrMinL1
                car     utlDisplayHrMinData
                                
        CALLS   SUBROUTINE , 'utlDisplayHrMinData'
       
        ENDM
              

UTL_DISPLAY_HR_MIN_DATA_L2  MACRO

                ld      IY, #utlDispAddrHrMinL2
                car     utlDisplayHrMinData
                                
        CALLS   SUBROUTINE , 'utlDisplayHrMinData'
       
        ENDM
              


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTL_DISPLAY_DATE_COMPLETE_AND_DOW
;
; Description : Displays the complete Date of an application based from the 
;                 primary timezone configuration including the DOW.
;
; Assumptions : Date Data Structure should be in the format:
;                 Day , Month, Year Lo, Year High, DOW.
;
; Usage       : UTL_DISPLAY_DATE_COMPLETE_AND_DOW
;       
; Input(s)    : IYReg should point to the applications Day field.
;              
; Output(s)   : Displays the Complete Date in the 9-segment region     
;
;               ( Destroyed: HLReg, BAReg, IXReg )
;
; MACRO Change History:
;
;               01/28/2001 RBR - Created UTL_DISPLAY_DATE_COMPLETE_AND_DOW for 
;                                  M851
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
UTL_DISPLAY_DATE_COMPLETE_AND_DOW   MACRO

                car     utlDisplayDateCompleteAndDOW

        CALLS   SUBROUTINE, 'utlDisplayDateCompleteAndDOW'

        ENDM


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Macro Name  : UTL_DISPLAY_DATE_COMPLETE
;
; Description : Displays the complete Date of an application based from the 
;                 primary timezone configuration.
;
; Assumptions : Date Data Structure should be in the format:
;                 Day , Month, Year Lo, Year High, DOW.
;
; Usage       : UTL_DISPLAY_DATE_COMPLETE
;       
; Input(s)    : IYReg should point to the applications Day field.
;              
; Output(s)   : Displays the Complete Date in the 9-segment region     
;
;               ( Destroyed: HLReg, IXReg, BAReg )
;
; MACRO Change History:
;
;               01/28/2001 RBR - Created utlDisplayDateComplete for M851
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

UTL_DISPLAY_DATE_COMPLETE       MACRO

                car     utlDisplayDateComplete

        CALLS   SUBROUTINE, 'utlDisplayDateComplete'

        ENDM