Sat, 7 Feb 2009, 17:35

A student writes:

	Dr. Patt,

	I'm wondering what needs to be done in case there is an extra operand. 
	For eg :

	ADD R1,R2,R3,R4  ( in case the programmer believes he can add upto 3 
	operands with ADD )

	IMO, this should throw up at least a warning because the program will 
	differ from the programmer's intended behaviour. It may not be reason 
	enough to exit though, so our assembler does assemble the code and 
	provide correct output.

How can your assembler provide correct output to a program that is 
written incorrectly?

No, your assembler should print the appropriate error message and exit.

Yale Patt

	Thank you
	<<name withheld to protect the student who can read minds>>