Computer science

Computer science

II. The Miowins code contains paeudodnutructiontt; instructions that do not renily exist. but can he
eerily implemented using existing instructions. Replace the pseudodnstructions with working code.
The pseudo-instructions are: nor. the AC gets the NOR of the AC and the R registers. mldm. replaces
the contents of the first memory location with the sum of the first and second memory locations. and
bite. jumps if all of the bits clear in the R register are also clear in the AC. Tum in n listing of your
code. and the results of the test run.
org 0
x: do 11
y: dw 121
0:9 20
ldac x
I‘M/oC
ldac y
“or
stac y
addm x y
ldac y
lie.)
tea: at
jpbe 11
ldae x
ti stoc tftfh
jump 12
11: ldac y
stac ffffh
12: nap
and
(2. Write an assembly language program that reads in a number. n. and outputs I”‘l‘cst your program
on input 11. ‘htrn in a listing of your program . and the results of this test run. (Your answer should be
144.)
3. Design and draw control for a system with the following specifications:
a. One input device at address ooh. I
b. One 64×4 ROM. starting at address 4oh. I i
5 ‘6. One output device at address COh.
lines RD (read) and WT (write) generated by the CPU.

© 2020 customphdthesis.com. All Rights Reserved. | Disclaimer: for assistance purposes only. These custom papers should be used with proper reference.