;
;	Z80 ASSEMBLER TEST INSTRUCTION FILE
;
	ORG	100H	;TEST ORG PSEUDO OP
LABEL1	EQU	$	;TEST EQU PSEUDO OP
	DEFW	LABEL1	;TEST DEFW PSEUDO OP
	DEFB	03FH	;TEST DEFB PSEUDO OP FORM 1
	DEFB	'THIS IS A TEST'	;TEST DEFB PSEUDO OP FORM 2
	DEFS	55	;TEST DEFS PSEUDO OP
;
;	THE NEXT THREE LINES USE THE IBM PSEUDO WHICH WAS ADDED TO
;	FACILITATE SCREEN FORMATTING.
;
;	THE FORMAT IS:	IBM	HEX,ASCII,HEX,ASCII,... WITH NO QUOTES
;							AROUND THE ASCII
;
;	IF THE USER WHISHES TO USE ASCII FIRST THEN THE FIRST BYTE MUST
;	BEGIN WITH A QUOTE.
;
;	THE HEX NUMBERS MUST BE IN PAIRS AND MUST NOT HAVE 'H' AFTER THEM
;	THE ASCII STRINGS CAN INCLUDE ANY CHARACTERS (INCLUDING QUOTES AND
;	SEMI-COLONS EXCEPT NO COMMAS
;
;
;
	IBM	1A0000,TOP OF SCREEN ON	LEAR SEIGLER ADM3,0D0A0D0A,DOWN	3 LINES
	IBM	0FAD,ASCII CODING,0FE4,SCREEN FORMATTING
	IBM	'ASCII FIRST,0DFF,THEN HEX
;
	LD	A,B	;TEST LOAD
	LD	A,0FFH
	LD	A,(HL)
	LD	A,(IX+5)
	LD	A,(IY+6)
	LD	(HL),B
	LD	(IX+5),B
	LD	(IY+5),B
	LD	(HL),23
	LD	(IX+1),24
	LD	(IY+1),25
	LD	(BC),A
	LD	(DE),A
	LD	(LABEL1),A
	LD	A,(BC)
	LD	A,(DE)
	LD	A,(LABEL1)
	LD	A,I
	LD	A,R
	LD	I,A
	LD	R,A
	LD	BC,LABEL1
	LD	DE,LABEL1
	LD	HL,LABEL1
	LD	SP,LABEL1
	LD	IX,LABEL1
	LD	IY,LABEL1
	LD	HL,(LABEL1)
	LD	IX,(LABEL1)
	LD	IY,(LABEL1)
	LD	(LABEL1),HL
	LD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