	title	modified rom monitor
	page	64
	.z80

;********************************************************
;*							*
;*	Monitor ROM for Bigboard_II single board	*
;*	computer.					*
;*							*
;*	copyright (C) 1982 by Russell Smith.		*
;*	all rights reserved by Russell Smith.		*
;*							*
;*	last revision date ... 8-July-1982		*
;*							*
;********************************************************
;							*
;*	Edit by L.Koopman				*
;*		Waarbekenplein 13			*
;*		7553 KK Hengelo (o)			*
;*		Tel. 074-913022				*
;*		Holland.				*
;*							*
;*	include:	default presets for 5 or 8 inch *
;*			disc drives. for mixed bios.	*
;*							*
;*			Write track entry in jump table *
;*			used by format40/80.		*
;*							*
;*			Auto boot option.		*
;*							*
;*			double step option		*
;*							*
;*			changed cursor initalization	*
;*			use 8645 cursor instead of 8002	*
;*							*
;*			changed video initialze tables	*
;*			table one for a 16 Mhz crystal	*
;*			table two for a 15 Mhz crystal	*
;*			both tables for a 15.75 Khz	*
;*			monitor.			*
;*							*
;*                     Deleted ZAPCSR: and references   *
;*                     Added graphics correction SATTR2 *
;*                     Keyboard conversion in KEYSRV:   *
;*                     Corrected interrupt error in RW2:*
;*                                                      *
;*	Version	2.1					*
;*	Last edit date	11/11/83 by:Andy Bakkers        *
;*							*
;********************************************************
;
	ASEG
MONITR	EQU	0F000H
DSKBUF	EQU	0F800H
RAM	EQU	0FF00HŠ;
TRUE	EQU	1
FALSE	EQU	0
;
AUTOBOOT EQU	true		;USED IF WE WANT TO BOOT AUTOMATIC
DSTEP	EQU	true		;USED FOR 80 TRACK DRIVES
BIGRAM	EQU	TRUE		;USED FOR 256K RAM MAPPING
;
	ORG	0000H		;PUT ROM-RESIDENT STUFF HERE

	INCLUDE	MINIT.MAC	;COLD START INITIALIZATION
	INCLUDE	CRTOUT.MAC	;MEMORY-MAPPED CRT OUTPUT DRIVER
	INCLUDE	MONITOR.MAC	;ROM MONITOR ROUTINES
;
;
;
;
MONCOPY	EQU	$

	.PHASE	MONITR		;PUT RAM-RESIDENT STUFF HERE

MONSTRT	EQU	$
	INCLUDE	MENTRYS.MAC	;MONITOR ENTRY POINTS
	INCLUDE	MINTSRV.MAC
	INCLUDE	MDISKIO.MAC
MONLEN	EQU	$-MONSTRT
MONEND	EQU	$

	.DEPHASE
;
;
;
;
RAMCOPY	EQU	$

	.PHASE	RAM

RAMSTRT	EQU	$
	INCLUDE	MEMORY.MAC	;INITIALIZED VARIABLES
RAMLEN	EQU	$-RAMSTRT

	.DEPHASE
;
ROMLEN	EQU	$

	IF	ROMLEN	GE	4096+1
	.PRINTX	/MONITOR TOO BIG FOR A SINGLE 2732 EPROM/
	ENDIF
;
;
;
	.PHASE	MONEND

	INCLUDE	SCRATCH.MAC
TAIL	EQU	$		;END OF RESERVED MEMORY IN MONŠ
	.DEPHASE
;
;
;
;
	END
