This assignment is due Monday, 2 April.
This homework is, in style, similar to Lab 7. Be sure you understand the lab before attempting the homework.
Write an LC-2 assembly language program to perform the following three C statements:
R0 = R3 ^ R4 ;
R1 = R3 != R4 ;
R2 = R3 || R4 ;
Follow the following rules:
R0, R1, and
R2 based on the values of
registers R3 and R4.
R3 and R4.
R5, R6, and
R7 as "scratch" registers.
HALT
system call.
This assignment is to be turned in by copying it to your Computer Science Unix directory. First create a protected directory csci/255/home8 as shown below:
Then save your completed assembly program in the file home8.asm within your csci/255/home8 directory.