*** 68EC000 CPU-based Single Board Computer *** Monitor Version 2.10
====================================================================
B <1 or 2> <bkpt>            Set permanent breakpoint 1 or 2.
B <1 or 2><ENT>              Clear breakpoint 1 or 2.
B<ENT>                       Display permanent breakpoints.
C <start> <end> <destin>     Compare Memory
D <start> <#$ of lines>      Dump Memory with optional parameters. ^C to quit.
D , <#$ of lines>            As above, but start at current address.
E <address>                  Edit Memory
F <start> <end> <data>       Fill Memory
G <start> <bkpt1> <bkpt2>    Go to USER program with optional breakpoints.
G , <bkpt1> <bkpt2>          As above but start at current program counter.
G<ENT>                       Start at current program counter, no breakpoints.
H <data1> <data2>            Hex sum & difference
L <optional offset address>  Load S-FILE Program. ^C to abandon.
M <start> <end> <destin>     Move Memory
R                            Register Dump
R D7                         Register Modify D7
T <optional start address>   Trace. >R Dn <ENT> to modify any register while tracing.
                             Type <ENT> to continue tracing.
U <start> <#$ of lines>      Unassemble memory with optional parameters.
U , <#$ of lines>            As above, but start at current address.
?                            This Screen


	monitor_trap_list

TRAP #0	TO_CHARIN	Returns 7-bit char in D1.B
TRAP #1	TO_CHAROUT	XMT char in D1.B
TRAP #2	TO_CRLF		Send out CR and LF
TRAP #3	TO_PRTMSG	prints a message pointed to by A3. The message must end in a NULL.
TRAP #4	TO_PRT_BYT	Takes a byte in D2.B, converts to 2 ASCII characters
			and puts them on screen.
TRAP #5	TO_PRT_WRD	Takes a word in D2.W, converts to 4 ASCII characters
			and puts them on screen.
TRAP #6	TO_PRT_LON	Takes a long word in D2.L, converts to 8
			ASCII characters and puts them on screen.
TRAP #7	TO_GET_BYT	It first fills INPBUF with chars until a CR occurs.
			The chars are then examined.
			If 1st char is CR then it sets D2.B and quits.
			Else it resets D2.B and proceeds to change
			valid hex digits to ASCII numbers.
TRAP #8	TO_GETADR	Gets keyboard input and transforms it into a longword into D2.
			If only a CR was typed then D6.B contains $FF, else it's 0.
TRAP #9	TRP_9		return to command/monitor
TRAP #10 TRP_10		executed when a breakpoint is encountered
TRAP #11 TRP_11		goto $8000
TRAP #12 TRP_12		goto $8000+4
TRAP #13 TRP_13		goto $8000+8
TRAP #14 TRP_14		goto $8000+12
TRAP #15 TRP_15		goto $8000+16


	assembler equates

trp_charin	equ 0 ; Returns 7-bit char in D1.B
trp_charout	equ 1 ; XMT char in D1.B
trp_crlf	equ 2 ; Send out CR and LF
trp_prtstr	equ 3 ; A3 points to null terminated ASCII string
trp_prtbyte	equ 4 ; print 2 ASCII char from D2.B
trp_prtword	equ 5 ; print 4 ASCII char from D2.W
trp_prtlong	equ 6 ; print 8 ASCII char from D2.L
trp_getbyte	equ 7 ; fills INPBUF with chars until a CR occurs.
			; If 1st char is CR then it sets D2.B and quits.
			; Else it resets D2.B and proceeds to change
			; valid hex digits to ASCII numbers.
trp_getadr	equ 8 ; Gets keyboard input and transforms it into a
			; longword into D2.
			; If only a CR was typed then D6.B contains $FF,
			; else it's 0.
trp_exit	equ 9 ; return to command/monitor

start_ram equ	$8000
uart_data equ	$10000
uart_cmd  equ	$10001
latches   equ	$18000

cr	equ	$d
lf	equ	$a
