Due: Friday, October 7, 2016, 11: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, BRA, and BR for each of the following questions. Then translate the assembly program into machine instructions.

  1. RA and RB have arbitrary initial values. Subtract RA from RB and put the result in RA. Do not modify RB.

  2. Loads RA with 5, loads RB with 3 and then swaps the values of RA and RB.

© 2016 Ying Li. Page last modified: .