;MACRO7.ASM

; This file tests illegal macro usage.

	LIST	P=17C42

TEST	MACRO	NUM
	ADDLW	NUM
	ENDM

	TEST		;Missing parameter
	TEST	1, 2	;Too many parameters.

MAC1	MACRO
	NOP
	ENDM

MAC2	MACRO
	MAC1
	ENDM

MAC3	MACRO
	MAC2
	ENDM

MAC4	MACRO
	MAC3
	ENDM

MAC5	MACRO
	MAC4
	ENDM

MAC6	MACRO
	MAC5
	ENDM

MAC7	MACRO
	MAC6
	ENDM

MAC8	MACRO
	MAC7
	ENDM

MAC9	MACRO
	MAC8
	ENDM


MAC1A	MACRO
	MAC8
	ENDM

MAC2A	MACRO
	MAC1A
	ENDM

MAC3A	MACRO
	MAC2A
	ENDM

MAC4A	MACRO
	MAC3A
	ENDM

MAC5A	MACRO
	MAC4A
	ENDM

MAC6A	MACRO
	MAC5A
	ENDM

MAC7A	MACRO
	MAC6A
	ENDM

MAC8A	MACRO
	MAC7A
	ENDM

MAC9A	MACRO
	MAC8A
	ENDM


	MAC9	;Nested too deep - when 8 deep

	MAC9A

	END
