;
; MODULE:	HCS02G02
; DESCRIPTION:	HCS (home computer small) Version 02 (based upon 8052-BASIC 1.1)
;               "R" is container source file for variant "RF"
;               Variant "R" (All Firmware in RAM), "F" (Firmware Source Part)
;               Software Version 02
;               Software parts containing BASIC programs in EPROM commented out.
; +H+
;
; History:
;
; V 0.2-0, 02-JUN-2001, WS, use HCS02xxx02.SRC source modules:
;                           - add Timeouts
;                           - add sequencer
;
; -H-
;
;
; -----------------------------------------------------------------------
;   Application Definitions
; -----------------------------------------------------------------------
;
$INCLUDE(HCS02D02.SRC)
;
; -----------------------------------------------------------------------
;   Application Memory Storage
; -----------------------------------------------------------------------
;
	ORG	06000H
;
$INCLUDE(HCS02S02.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(HCS02EM.SRC)
;
;	DB	001H		; end of program
;
; ---- BASIC ROM 2 Program: Dump RAM program
;
; $INCLUDE(DRPINC.SRC)
;
; ---- assembly code module 
;
	ORG	05000H
;
$INCLUDE(HCS02C02.SRC)
;
; --- MARKER for RAM mode --------------------------
;
; a value of 05AH at address 0502FH identifies the 
; program of being loaded in RAM
;
	ORG 0502FH
;
	DB	05AH
;
; ---- END of HCS02R02.SRC
;
	END