Due: Friday, October 6, 2017, 9:00 am (start of the class)
Given The Count diagram, assume RA and RB are four bits. Write an assembly program by using LOAD, MOV, ADD, NOT, XOR, BRZ, and BRA for each of the following questions. Then translate the assembly program into machine instructions.
RA and RB have arbitrary initial values. Subtract RA from RB and put the result in RA. Do not modify RB.
Loads RA with 5, loads RB with 3 and then swaps the values of RA and RB.
© 2017 Ying Li. Page last modified: .