	SUBTTL	EXTERNAL DEFINITIONS FOR CLOCK ROM	
;****************************************************************************
;
;	THIS INCLUDE FILE DEFINES THE EXTERNAL I/O FOR THE CLOCK/CALENDAR
;  ROM.
;
;****************************************************************************
;
;	REVISION HISTORY:
;
; 1.0	6 JUL 88   GRH
;	First cut.
;
; 1.1	26 SEP 88 GRH
;	Change prefixes to 'CLK_'
;
;****************************************************************************


;============================================================================
;
;			ROM #
;
;============================================================================
CLK_ROM	EQU	7


;============================================================================
;
;			ENTRY POINTS
;
;============================================================================
	STRUCT	0F800H		;START OF ROM
CLK_RDB	DS	3	;READ CLOCK DATA INTO BUFFER FUNCTION
			;   ENTRY- BC= PTR TO 13 BYTE BUFFER TO PLACE DATA
;
CLK_WRB	DS	3	;SET CLOCK DATA FROM BUFFER FUNCTION
			;   ENTRY- BC= PTR TO 13 BYTE BUFFER CONTAINING DATA
;
CLK_CAL	DS	3	;RETURN CLOCK CALENDAR DATA FUNCTION
			;   EXIT - A= DAY	L= DAY OF WEEK (0= SUNDAY)
			;	   B= MONTH	DE= ?
			;	   C= YEAR
;
CLK_TIM	DS	3	;RETURN CLOCK TIME DATA FUNCTION
			;   EXIT - A= SECONDS	C= HOURS
			;	   B= MINUTES	DE= ?
;
;   PERFORM CLOCK ROM FUNCTION
;
CLK_FUN	DS	3
;
;   ENTRY- C= FUNCTION #
CLK_F0	EQU	0	;RETURN ROM VERSION #
			;   EXIT - HL= BINARY VERSION #
;
CLK_F1	EQU	1	;READ CLOCK DATA INTO BUFFER
			;   ENTRY- DE= PTR TO 13 BYTE BUFFER TO PUT DATA
;
CLK_F2	EQU	2	;SET CLOCK FROM DATA BUFFER
			;   ENTRY- DE= PTR TO 13 BYTE BUFFER TO SET CLOCK FROM
;
CLK_F3	EQU	3	;RETURN CLOCK CALENDAR DATA
CLK_F4	EQU	4	;RETURN CLOCK TIME DATA
CLK_F5	EQU	5	;RETURN CLOCK DATA FROM REGISTER
			;   ENTRY- E= REGISTER #
;
CLK_F6	EQU	6	;RETURN WHEN CLOCK CHANGES STATE
CLK_F7	EQU	7	;TEST FOR BOARD PRESENT
			;   EXIT - A= 0: NOT PRESENT
			;
CLK_F8	EQU	8	;STOP CLOCK
CLK_F9	EQU	9	;START CLOCK
;
	ENDM

