head	1.1;
access;
symbols;
locks
	yap:1.1; strict;
comment	@# @;


1.1
date	2010.12.08.16.13.54;	author yap;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@<body bgcolor=aaaaaa>
<h2>
SOLUTION TO HW4:
</h2>
<h3>
PART A (Written Part):
</h3>	
We expected you to write a program containing
all the instructions and see what happens!
<br>
(1) All are legal except for (a) and (d).
<br>
(2) CMPSW compiles to 1 byte (you can see this under the CPU Window
	of Turbo Debugger).
<br>
(3) There are two ways to see the "user screen":
<dd>
 		i.  One can either hit ALT-F5 on the keyboard.
<dd>
 		ii. One can go under the Windows pulldown menu and select
 		    "User Screen".  
<dd>
    To return to TD, you can either hit a key on the keyboard or
 	   click the mouse button.
<br>
(4) The error is caused by the repetition of the macro label just
	before the `endm' pseudo-instruction.  This is unlike
	the `endp' pseudo-instruction for procedure definition.
 	If compiled, the assembler error message is -
	``Fatal -- Unexpected end of file encountered''.
<p>
	NOTE:
	We want to alert you to this error because even if
	you had used the ``/z'' switch for TASM,
	the error message will not tell you the line which
	is causing this problem!  (Actually, the error message says
	the offending line is the last line of your file!)
	If this error is in a macro in an included file,
	it may be particularly hard to find.
<h3>
PART B (Programming Part):
</h3>
	Click <a href=h4b>here</a> for the files.

</body>
@
