;
; MODULE:	HCS02G04
; DESCRIPTION:	HCS (home computer small) Version 02 (based upon 8052-BASIC 1.1)
;               "G" is container source file for variant "EF"
;               Variant "E" (All Firmware in EPROM), "F" (Firmware Source Part)
;               Software Version 04
; +H+
;
; History:
;
; V 0.2-0, 02-JUN-2001, WS, use HCS02xxx02.SRC source modules:
;                           - add Timeouts
;                           - add sequencer
; V 0.4-0, 16-MAR-2003, WS, create HCS02G04.SRC from HCS02G02.SRC
;
; -H-
;
;
; -----------------------------------------------------------------------
;   Application Definitions
; -----------------------------------------------------------------------
;
$INCLUDE(HCS02D04.SRC)
;
; -----------------------------------------------------------------------
;   Application Memory Storage
; -----------------------------------------------------------------------
;
	ORG	06000H
;
$INCLUDE(HCS02S04.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(s) saved in EPROM
;
	ORG	08010H
;
; ---- BASIC ROM 1 Program: HCS02 control monitor
;
	DB	055H
;
$INCLUDE(HCS02B04.SRC)
;
	DB	001H		; end of program
;
; ---- BASIC ROM 2 Program: Dump RAM program
;
$INCLUDE(DRPINC.SRC)
;
; ---- assembly code module 
;
	ORG	0D000H
;
$INCLUDE(HCS02C04.SRC)
;
; ---- END of HCS02G04.SRC
;
	END