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
	LBNE	_122
	CLRA
	CLRB
	PULS	U,PC
_122
	LBRA	_121
_120
	LDD	#1
	PULS	U,PC
_118
	CMPD	#63
	LBNE	_124
_123
	LDB	[6,U]
	SEX
	LBEQ	_125
	LDD	6,U
	ADDD	#1
	PSHS	D
	LDD	4,U
	ADDD	#1
	PSHS	D
	LBSR	match
	LEAS	4,S
	LBRA	_126
_125
	CLRA
	CLRB
_126
	PULS	U,PC
_124
	CMPD	#0
	LBNE	_128
_127
	LDB	[6,U]
	SEX
	LBEQ	_129
	CLRA
	CLRB
	BRA	*+5
_129
	LDD	#1
	PULS	U,PC
_130
	LDB	[6,U]
	SEX
	PSHS	D
	LDB	[4,U]
	SEX
	SUBD	,S++
	LBNE	_131
	LDD	6,U
	ADDD	#1
	PSHS	D
	LDD	4,U
	ADDD	#1
	PSHS	D
	LBSR	match
	LEAS	4,S
	PULS	U,PC
_131
	CLRA
	CLRB
	PULS	U,PC
_128	EQU	_130
_116
	PULS	U,PC
fopen
	PSHS	U
	LEAU	,S
	LEAS	-10,S
	CLRA
	CLRB
	LDD	6,U
_133
	LDB	[-4,U]
	SEX
	LBEQ	_132
	LDB	[-4,U]
	SEX
	CMPD	#114
	LBNE	_137
_136
	LDD	#1
	LBRA	_135
_137
	CMPD	#119
	LBNE	_139
_138
	LDD	#1
	LBRA	_135
_139
	CMPD	#99
	LBNE	_141
_140
	LDD	#1
	LBRA	_135
_142
	CLRA
	CLRB
	LEAS	,U
	PULS	U,PC
_141	EQU	_142
_135
_134
	LDD	-4,U
	ADDD	#1
	STD	-4,U
	SUBD	#1
	LBRA	_133
_132
	LDD	-8,U
	EORA	-6,U
	EORB	-6+1,U
	SUBD	#0
	LBNE	_143
	CLRA
	CLRB
	LEAS	,U
	PULS	U,PC
_143
	LDD	-6,U
	LBEQ	_144
	LDD	-10,U
	PSHS	D
	LDD	4,U
	PSHS	D
	LBSR	_open
	LEAS	4,S
	LEAS	,U
	PULS	U,PC
_144
	LDD	-10,U
	PSHS	D
	LD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#12
	LBGE	_185
	LDB	[4,U]
	SEX
	LBEQ	_189
	LDB	[4,U]
	SEX
	SUBD	#46
	LBNE	_188
_189
	LBRA	_185
_188
	LDX	4,U
	LDB	,X+
	STX	4,U
	SEX
	PSHS	D
	LDD	-2,U
	LDX	6,U
	LEAX	D,X
	PULS	D
	STB	0,X
_187
	LDD	-2,U
	ADDD	#1
	STD	-2,U
	LBRA	_186
_185
_191
	LDB	[4,U]
	SEX
	LBEQ	_190
	LDB	[4,U]
	SEX
	SUBD	#46
	LBEQ	_190
	LDD	4,U
	ADDD	#1
	STD	4,U
	LBRA	_191
_190
	LDB	[4,U]
	SEX
	SUBD	#46
	LBNE	_192
	LDD	4,U
	ADDD	#1
	STD	4,U
	LDD	#12
_194
	LDD	-2,U
	SUBD	#15
	LBGE	_193
	LDB	[4,U]
	SEX
	LBNE	_196
	LBRA	_193
_196
	LDX	4,U
	LDB	,X+
	STX	4,U
	SEX
	PSHS	D
	LDD	-2,U
	LDX	6,U
	LEAX	D,X
	PULS	D
	STB	0,X
_195
	LDD	-2,U
	ADDD	#1
	STD	-2,U
	LBRA	_194
_193
_192
	LDD	#1
	PULS	X,U,PC
fflush
	PSHS	U
	LEAU	,S
	CLRA
	CLRB
	PULS	U,PC
unlink
	PSHS	U
	LEAU	,S
	LEAS	-320,S
	LEAX	-320,U
	PSHS	X
	LDD	4,U
	PSHS	D
	LBSR	_setname
	LEAS	4,S
	SUBD	#0
	LBNE	_198
	LDD	#12
	PSHS	D
	LEAX	-320,U
	PSHS	X
	LBSR	FMS
	LEAS	4,S
	SUBD	#0
	LBGE	_197
_198
	LDD	#-1
	LBRA	_199
_197
	CLRA
	CLRB
_199
	LEAS	,U
	PULS	U,PC
rename
	PSHS	U
	LEAU	,S
	LEAS	-320,S
	LEAX	-320,U
	PSHS	X
	LDD	4,U
	PSHS	D
	LBSR	_setname
	LEAS	4,S
	SUBD	#0
	LBNE	_201
	LEAX	-271,U
	PSHS	X
	LDD	6,U
	PSHS	D
	LB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-4,U]
	LBRA	_216
_215
	LDD	[-4,U]
	PSHS	D
	LDX	-2,U
	LDD	2,X
	ASLB
	ROLA
	ASLB
	ROLA
	ADDD	-2,U
	SUBD	,S++
	LBNE	_221
	LDD	[-4,U]
	PSHS	D
	LDD	#2
	PULS	X
	LDD	D,X
	PSHS	D
	LDD	-2,U
	ADDD	#2
	TFR	D,X
	LDD	0,X
	ADDD	,S++
	STD	0,X
	LDD	[-4,U]
	TFR	D,X
	LDD	0,X
	STD	[-2,U]
	LBRA	_222
_221
	LDD	[-4,U]
	STD	[-2,U]
_222
	LDX	-4,U
	LDD	2,X
	ASLB
	ROLA
	ASLB
	ROLA
	ADDD	-4,U
	SUBD	-2,U
	LBNE	_223
	LDX	-2,U
	LDD	2,X
	PSHS	D
	LDD	-4,U
	ADDD	#2
	TFR	D,X
	LDD	0,X
	ADDD	,S++
	STD	0,X
	LDD	[-2,U]
	STD	[-4,U]
	LBRA	_224
_223
	LDD	-2,U
	STD	[-4,U]
_224
	LDD	-4,U
	PULS	D,X,U,PC
freesize
	PSHS	U
	LEAU	,S
	LEAS	-2,S
	LDD	41,Y
	LBNE	_225
	LBSR	initheap
_225
	LEAX	-2,U
	TFR	X,D
	SUBD	41,Y
	PULS	X,U,PC
main
	PSHS	U
	LEAU	,S
	LEAX	2,PC
	BRA	_226
	FCB	84,101,114,109,105,110,97,108
	FCB	32,101,109,117,108,97,116,111
	FCB	114,10,0
_226
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LBSR	reminit
_228
	LEAX	2,PC
	BRA	_229
	FCB	10,84,40,101,114,109,32,44
	FCB	32,70,40,105,108,101,32,44
	FCB	32,69,40,120,105,116,32,58
	FCB	32,0
_229
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LBSR	getchar
	PSHS	D
	LBSR	toupper
	LEAS	2,S
	CMPD	#84
	LBNE	_232
_231
	LBSR	term
	LBRA	_230
_232
	CMPD	#70
	LBNE	_234
_233
	LBSR	filer
	LBRA	_230
_234
	CMPD	#69
	LBNE	_236
_235
	LBSR	exit
_236
_230
	LBRA	_228
_227
	PULS	U,PC
term
	PSHS	U
	LEAU	,S
	LEAS	-1,S
	LEAX	2,PC
	BRA	_237
	FCB	10,62,62,62,32,101,110,116
	FCB	101,114,32,116,101,114,109,105
	FCB	110,97,108,32,109,111,100,101
	FCB	32,60,99,116,108,45,64,32
	FCB	116,111,32,101,120,105,116,62
	FCB	10,0
_237
	PSHS	X
	LBSR	printf
	LEAS	2,S
        ORCC    #$50    disable interrupt
_239
	LBSR	remstat
	SUBD	#0
	LBEQ	_240
	LBSR	remread
	PSHS	D
	LBSR	conwrite
	LEAS	2,S
_240
	LBSR	constat
	SUBD	#0
	LBEQ	_241
	LBSR	conread
	SUBD	#0
	LBNE	_242
	LBRA	_238
_242
	LDB	-1,U
	SEX
	PSHS	D
	LBSR	remwrite
	LEAS	2,S
_241
	LBRA	_239
_238
        ANDCC   #$AF    restore interrupt mask
	PULS	A,U,PC
filer
	PSHS	U
	LEAU	,S
	LEAX	2,PC
	BRA	_243
	FCB	10,62,62,62,32,101,110,116
	FCB	101,114,32,102,105,108,101,32
	FCB	116,114,97,110,115,102,101,114
	FCB	32,109,111,100,101,10,0
_243
	PSHS	X
	LBSR	printf
	LEAS	2,S
_245
	LEAX	2,PC
	BRA	_246
	FCB	10,68,105,114,101,99,116,105
	FCB	111,110,32,70,40,108,101,120
	FCB	45,62,117,110,105,120,32,44
	FCB	32,85,40,110,105,120,45,62
	FCB	102,108,101,120,32,44,32,69
	FCB	40,120,105,116,32,58,32,0
_246
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LBSR	getchar
	PSHS	D
	LBSR	toupper
	LEAS	2,S
	CMPD	#70
	LBNE	_249
_248
	LBSR	flex_uni
	LBRA	_247
_249
	CMPD	#85
	LBNE	_251
_250
	LBSR	unix_fle
	LBRA	_247
_251
	CMPD	#69
	LBNE	_253
_252
	PULS	U,PC
_253
_247
	LBRA	_245
_244
	PULS	U,PC
flex_uni
	PSHS	U
	LEAU	,S
	LEAS	-163,S
	LEAX	2,PC
	BRA	_254
	FCB	10,70,76,69,88,32,116,111
	FCB	32,85,78,73,88,32,102,105
	FCB	108,101,32,116,114,97,110,115
	FCB	102,101,114,10,0
_254
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LEAX	2,PC
	BRA	_255
	FCB	70,76,69,88,32,102,105,108
	FCB	101,32,110,97,109,101,32,58
	FCB	32,0
_255
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LDD	#80
	PSHS	D
	LEAX	-80,U
	PSHS	X
	LBSR	gets
	LEAS	4,S
	LEAX	2,PC
	BRA	_256
	FCB	10,0
_256
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LEAX	-80,U
	PSHS	X
	LBSR	toupstr
	LEAS	2,S
	LEAX	2,PC
	BRA	_258
	FCB	114,99,0
_258
	PSHS	X
	LEAX	-80,U
	PSHS	X
	LBSR	fopen
	LEAS	4,S
	SUBD	#0
	LBHS	_257
	LEAX	-80,U
	PSHS	X
	LEAX	2,PC
	BRA	_259
	FCB	67,97,110,39,116,32,111,112
	FCB	101,110,32,37,115,10,0
_259
	PSHS	X
	LBSR	printf
	LEAS	4,S
	LEAS	,U
	PULS	U,PC
_257
	LEAX	2,PC
	BRA	_260
	FCB	85,78,73,88,32,102,105,108
	FCB	101,32,110,97,109,101,32,58
	FCB	32,0
_260
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LDD	#80
	PSHS	D
	LEAX	-160,U
	PSHS	X
	LBSR	gets
	LEAS	4,S
	LEAX	2,PC
	BRA	_261
	FCB	10,0
_261
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LEAX	2,PC
	BRA	_262
	FCB	99,97,116,32,47,100,101,118
	FCB	47,116,116,121,32,62,0
_262
	PSHS	X
	LBSR	tx_str
	LEAS	2,S
	LEAX	-160,U
	PSHS	X
	LBSR	tx_str
	LEAS	2,S
	LDD	#10
	PSHS	D
	LBSR	tx_char
	LEAS	2,S
_264
	LDD	-163,U
	PSHS	D
	LBSR	getc
	LEAS	2,S
	SUBD	#-1
	LBEQ	_263
	LDB	-161,U
	SEX
	PSHS	D
	LBSR	tx_char
	LEAS	2,S
	LBRA	_264
_263
	LDD	#4
	PSHS	D
	LBSR	remwrite
	LEAS	2,S
	LDD	-163,U
	PSHS	D
	LBSR	fclose
	LEAS	2,S
	LEAS	,U
	PULS	U,PC
unix_fle
	PSHS	U
	LEAU	,S
	LEAS	-421,S
	LEAX	2,PC
	BRA	_265
	FCB	10,85,78,73,88,32,116,111
	FCB	32,70,76,69,88,32,102,105
	FCB	108,101,32,116,114,97,110,115
	FCB	102,101,114,10,0
_265
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LEAX	2,PC
	BRA	_266
	FCB	85,78,73,88,32,102,105,108
	FCB	101,32,110,97,109,101,32,58
	FCB	32,0
_266
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LDD	#80
	PSHS	D
	LEAX	-80,U
	PSHS	X
	LBSR	gets
	LEAS	4,S
	LEAX	2,PC
	BRA	_267
	FCB	10,70,76,69,88,32,102,105
	FCB	108,101,32,110,97,109,101,32
	FCB	58,32,0
_267
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LDD	#80
	PSHS	D
	LEAX	-160,U
	PSHS	X
	LBSR	gets
	LEAS	4,S
	LEAX	2,PC
	BRA	_268
	FCB	10,0
_268
	PSHS	X
	LBSR	printf
	LEAS	2,S
	LEAX	-160,U
	PSHS	X
	LBSR	toupstr
	LEAS	2,S
	LEAX	2,PC
	BRA	_270
	FCB	119,99,0
_270
	PSHS	X
	LEAX	-160,U
	PSHS	X
	LBSR	fopen
	LEAS	4,S
	SUBD	#0
	LBHS	_269
	LEAX	-160,U
	PSHS	X
	LEAX	2,PC
	BRA	_271
	FCB	67,97,110,39,116,32,99,114
	FCB	101,97,116,101,32,37,115,10
	FCB	0
_271
	PSHS	X
	LBSR	printf
	LEAS	4,S
	LEAS	,U
	PULS	U,PC
_269
	LEAX	2,PC
	BRA	_272
	FCB	47,109,110,116,47,115,121,115
	FCB	47,116,101,122,117,107,97,47
	FCB	117,110,105,120,95,102,108,101
	FCB	120,47,117,110,105,120,95,102
	FCB	108,101,120,32,0
_272
	PSHS	X
	LBSR	tx_str
	LEAS	2,S
	LEAX	-80,U
	PSHS	X
	LBSR	tx_str
	LEAS	2,S
	LDD	#10
	PSHS	D
	LBSR	tx_char
	LEAS	2,S
_274
	CLRA
	CLRB
_276
	LBSR	remread
	SUBD	#10
	LBEQ	_275
	LDB	-161,U
	SEX
	SUBD	#27
	LBNE	_277
	LDD	-163,U
	PSHS	D
	LBSR	fclose
	LEAS	2,S
	LEAS	,U
	PULS	U,PC
_277
	LDD	-165,U
	ADDD	#1
	STD	-165,U
	SUBD	#1
	LEAX	-421,U
	LEAX	D,X
	LDB	-161,U
	SEX
	STB	0,X
	LBRA	_276
_275
	LDD	-165,U
	ADDD	#1
	STD	-165,U
	SUBD	#1
	LEAX	-421,U
	LEAX	D,X
	LDD	#10
	STB	0,X
	LDD	-165,U
	LEAX	-421,U
	LEAX	D,X
	CLRA
	CLRB
	STB	0,X
	CLRA
	CLRB
_279
	LDD	-165,U
	LEAX	-421,U
	LDB	D,X
	SEX
	LBEQ	_278
	LDD	-163,U
	PSHS	D
	LDD	-165,U
	LEAX	-421,U
	LDB	D,X
	SEX
	PSHS	D
	LBSR	putc
	LEAS	4,S
_280
	LDD	-165,U
	ADDD	#1
	STD	-165,U
	SUBD	#1
	LBRA	_279
_278
	LDD	#27
	PSHS	D
	LBSR	remwrite
	LEAS	2,S
	LDD	#46
	PSHS	D
	LBSR	putchar
	LEAS	2,S
	LBRA	_274
_273
	LEAS	,U
	PULS	U,PC
toupstr
	PSHS	U
	LEAU	,S
_282
	LDB	[4,U]
	SEX
	LBEQ	_281
	LDB	[4,U]
	SEX
	PSHS	D
	LBSR	toupper
	LEAS	2,S
	STB	[4,U]
	LDD	4,U
	ADDD	#1
	STD	4,U
	LBRA	_282
_281
	PULS	U,PC
tx_str
	PSHS	U
	LEAU	,S
_284
	LDB	[4,U]
	SEX
	LBEQ	_283
	LDX	4,U
	LDB	,X+
	STX	4,U
	SEX
	PSHS	D
	LBSR	tx_char
	LEAS	2,S
	LBRA	_284
_283
	PULS	U,PC
tx_char
	PSHS	U
	LEAU	,S
	LDB	5,U
	SEX
	PSHS	D
	LBSR	remwrite
	LEAS	2,S
_286
	LBSR	remread
	PSHS	D
	LDB	5,U
	SEX
	SUBD	,S++
	LBNE	_286
_285
	LDB	5,U
	SEX
	PSHS	D
	LBSR	putchar
	LEAS	2,S
	PULS	U,PC
constat
	PSHS	U
	LEAU	,S
	LDD	#65408
	TFR	D,X
	LDB	0,X
	SEX
	ANDA	#0
	ANDB	#1
	PULS	U,PC
conread
	PSHS	U
	LEAU	,S
_288
	LBSR	constat
	SUBD	#0
	LBEQ	_288
_287
	LDD	#65409
	TFR	D,X
	LDB	0,X
	SEX
	ANDA	#0
	ANDB	#127
	PULS	U,PC
conwrite
	PSHS	U
	LEAU	,S
_290
	LDD	#65408
	TFR	D,X
	LDB	0,X
	SEX
	ANDA	#0
	ANDB	#2
	SUBD	#0
	LBEQ	_290
_289
	LDD	#65409
	TFR	D,X
	LDB	5,U
	SEX
	STB	0,X
	PULS	U,PC
reminit
	PSHS	U
	LEAU	,S
	LDD	#65424
	TFR	D,X
	LDD	#67
	STB	0,X
	LDD	#65424
	TFR	D,X
	LDD	#21
	STB	0,X
	PULS	U,PC
remstat
	PSHS	U
	LEAU	,S
	LDD	#65424
	TFR	D,X
	LDB	0,X
	SEX
	ANDA	#0
	ANDB	#1
	PULS	U,PC
remread
	PSHS	U
	LEAU	,S
_292
	LBSR	remstat
	SUBD	#0
	LBEQ	_292
_291
	LDD	#65425
	TFR	D,X
	LDB	0,X
	SEX
	ANDA	#0
	ANDB	#127
	PULS	U,PC
remwrite
	PSHS	U
	LEAU	,S
_294
	LDD	#65424
	TFR	D,X
	LDB	0,X
	SEX
	ANDA	#0
	ANDB	#2
	SUBD	#0
	LBEQ	_294
_293
	LDD	#65425
	TFR	D,X
	LDB	5,U
	SEX
	STB	0,X
	PULS	U,PC
_2	RTS
_INITIALIZE	EQU	_1
_GLOBALS	EQU	43
	END
