.SBTTL /BREAK/
.phex
.pabs
.xsym
.xlink
.sall
%type=	\"Simulator(0) Polbox(1) Apple(2)-"
;
.setlin 100
.radix 16
;
.ife %type,[
.define .XT[ADDR]=
[.WORD	ADDR]]
;
.ifg %type,[
.define .XT[ADDR]=
[.WORD	ADDR-1]]
;
;;
.ife %type,[
LISTHT	=	10
TYPEW	=	^d64
DISPM	=	0F
ENTRY	=	1800]
.ife %type-1,[
BRKV	=	3F0
SOFTEV	=	3F2
PWREDUP	=	3F4
AMPERV	=	3F5
USRADR	=	3F8
NMI	=	3FB
IRQLOC	=	3FE
LISTHT	=	10
TYPEW	=	^d64
DISPM	=	0F
CONSTS	=	0BFF0
CONPRT	=	0BFF1
SAM76	=	0C000
ENTRY	=	0F000]
;
.ife %type-2,[
BRKV	=	3F0
SOFTEV	=	3F2
PWREDUP	=	3F4
AMPERV	=	3F5
USRADR	=	3F8
NMI	=	3FB
IRQLOC	=	3FE
APPLE	=	1
SLOTN	=	1E
BAUDR	=	1F
LISTHT	=	^d23
TYPEW	=	^d32
DISPM	=	07
SAM76	=	1000
ENTRY	=	0F000]
;
.ife %type,[
BASE	=	0E8
ptrBC	=	BASE-4
ptrDE	=	saveY
ptrHL	=	pcLO
regBC	=	saveP
regHL	=	BASE-2
;
saveBP	=	BASE-5
saveP	=	BASE+0
saveS	=	BASE+1
saveY	=	BASE+2
saveX	=	BASE+3
saveA	=	BASE+4
pcLO	=	BASE+5
pcHI	=	BASE+6]
;
.IFG %type,[
wndlft	=	20
wndwdth	=	21
wndtop	=	22
wndbtm	=	23
ch	=	24
cv	=	25
gbasl	=	26
gbash	=	27
basl	=	28
bash	=	29
bas2L	=	2A
bas2H	=	2B
H2	=	2C
LMNEM	=	2C
RTNL	=	2C
V2	=	2D
RMNEM	=	2D
RTNH	=	2D
MASK	=	2E
CHKSUM	=	2E
FORMAT	=	2E
LASTIN	=	2F
LENGTH	=	2F
SIGN	=	2F
COLOR	=	30
MODE	=	31
INVFLG	=	32
PROMPT	=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