ENEE350-Oruc Homework Assignment 4
Buy and Download >
Guidelines For Working on the Homework Assignment:
questions to me at firstname.lastname@example.org and/or the course TAs to clarify things.
answer that counts most.
Problem 1: (20 points) Write microprograms in hexadecimal code to perform the
following operations in micro-Vesp.
(a) A = 3A + 3B;
(b) B = PC + 2B;
(c) if (A == 0) A = 4∗IX; else A = IX + 2;
Problem 2: (20 points)
(b) Assuming that the op-code of add instruction is modified so that, you can carry out
the following four instructions:
ADD: A = A + B (op-code: 0x0000) (old add instruction)
SUB: A = A - B (op-code: 0x0001)
ADB: B = A + B (op-code: 0x0002)
SUA: B = B - A (op-code: 0x0003)
Write a microprogram to implement SUA and ADB on micro-Vesp.
(c) Incorporate your microcode into Vesp 2.1M ( or Vesp 2.2M) and demonstrate that
your microprograms work by executing the following Vesp program: