IUP Computer Science
CO 300 Spring 1999

Quiz #5
(23 April 1999)

Below is the beginning of a macro definition for a macro named QUIZ that uses two arguments. Almost any kind of argument is allowed for either FIRST or SECOND; thus, all of the following are valid:

QUIZ		@(R10), XYZ-OFF+3
QUIZ		OFF(R6)[R8], #22
QUIZ		R7, -17(R9)
However, it is illegal for SECOND to be in autoincrement form, such as (R8)+ or (R10)+ or @(R7)+ Write statements inside QUIZ that check for all such illegal arguments; if an autoincrement argument is found, report an error message and terminate the macro expansion.
.MACRO	QUIZ    FIRST,  SECOND