;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; 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 :   synvars.h
;
; Purpose   :   Synchro Timer Application Variable Offsets
;
; File Change History:
;               
;               02/14/2002 FSU - Created for M851 development.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;==============================================================================
;
; SYNCHRO APPLICATION SYSTEM DATA
;
;==============================================================================

SYNSYSTEMDATASTARTOFFSET        equ     0

SYNRESOURCEINDEXOFFSET          equ     0

SYNFLAGSOFFSET                  equ     1

    bSYNDispFormat0             equ     00000001B       ; 00 - Total
    bSYNDispFormat1             equ     00000010B       ; 01 - Stop / Total
                                                        ; 10 - Total / Stop


SYNSYSTEMDATASIZE               equ     2


;==============================================================================
;
; SYNCHRO APPLICATION DATABASE DATA
;
;==============================================================================

SYNDATABASESTARTOFFSET          equ     SYNSYSTEMDATASIZE


SYNDATABASEDATASIZE             equ     0


SYNHEAPSIZEREQUIREMENTS         equ     (SYNSYSTEMDATASIZE + SYNDATABASEDATASIZE)


;==============================================================================
;
; VARIABLE REDEFINITION
;
;==============================================================================

;------------------------------------------------------------------------------
; Common Foreground Buffer
;------------------------------------------------------------------------------

; Holds the address of the data (either total or stoppage time buffer) to be
;   displayed on 9-segment.
SYNAddressOfUpperData           equ     (COREForegroundCommonBuffer + 0)


; Holds the address of the data (either total or stoppage time buffer) to be
;   displayed on the main DM.
SYNAddressOfLowerData           equ     (COREForegroundCommonBuffer + 2)


;------------------------------------------------------------------------------
; LCD Scroll Buffer
;------------------------------------------------------------------------------

; Storage for running synchro total time.  Do not rearrange.
SYNTotalUpdateBits              equ     (COREWorkBuffer + 0)
SYNTotalHundredths              equ     (COREWorkBuffer + 1)
SYNTotalSeconds                 equ     (COREWorkBuffer + 2)
SYNTotalMinutes                 equ     (COREWorkBuffer + 3)
SYNTotalHours                   equ     (COREWorkBuffer + 4)

; Storage for running synchro stoppage time.  Do not rearrange.
SYNStoppageUpdateBits           equ     (COREWorkBuffer + 5)
SYNStoppageHundredths           equ     (COREWorkBuffer + 6)
SYNStoppageSeconds              equ     (COREWorkBuffer + 7)
SYNStoppageMinutes              equ     (COREWorkBuffer + 8)
SYNStoppageHours                equ     (COREWorkBuffer + 9)