;
; MODULE:	HCS02EF
; DESCRIPTION:	HCS (home computer small) Version 02 (base 8052-BASIC)
;               Variant E (All Firmware in EPROM), Firmware Source Part
;
;
; -----------------------------------------------------------------------
;   Application Definitions
; -----------------------------------------------------------------------
;
$INCLUDE(HCS02D.SRC)
;
; -----------------------------------------------------------------------
;   Application Memory Storage
; -----------------------------------------------------------------------
;
	ORG	06000H
;
$INCLUDE(HCS02S.SRC)
;
; -----------------------------------------------------------------------
;   Application Code
; -----------------------------------------------------------------------
;
c_t2reload	EQU	65500	; timer 2 reload for 9600 bit/s @ 11059200 Hz XTAL
c_mtop		EQU	03FFFH	; MTOP for 03FFFH 
;
; ---- EPROM control structures
;
	ORG	08000H
;
	DB	034H		; signal PROG4 EPROM file format:
				; - execute ROM 1 Program at Reset
				; - restore Baudrate from EPROM
				; - restore MTOP from EPROM
	DW	c_t2reload
	DW	c_mtop
;
; ---- BASIC program saved in EPROM
;
	ORG	08010H
;
	DB	055H
;
$INCLUDE(HCS02EM.SRC)
;
	DB	001H		; end of program
;
; ---- BASIC ROM 2 Program: Dump RAM program
;
$INCLUDE(DRPINC.SRC)
;
; ---- assembly module 
;
	ORG	0D000H
;
$INCLUDE(HCS02C.SRC)
;
; ---- END of HCS02EF.SRC
;
	END