Build the Machine: Add Logical
A Visible/Z Lesson
Add Logical (AL) is an RX instruction that adds a fullword in memory (operand 2) and the contents of a register (operand 1). The two values are treated as unsigned integers and the sum is place in the operand 1 register.
1) Read about the details of this instruction in Principles of Operation. You should also examine the Java code in class Register where you can find an example of an add logical operation. Complete the execute( ) method of the AL class to provide the required functionality for the instruction.
2) Test your work by coding object code programs. Provide test code that sets all possible condition codes the instruction can generate.