Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do not copy from another answer. Do it by yourself. Q2 [5 points]: Suppose the hypothetical processor of Figure 1.3 also has two I/O
Please do not copy from another answer. Do it by yourself.
Q2 [5 points]: Suppose the hypothetical processor of Figure 1.3 also has two I/O instructions: 0011= Load AC from I/O 0100= SUB from AC In these cases, the 12-bit address identifies a particular external device. Show the program execution (using the format of Figure 1.4) for the following program: 1. Load AC from device 7. 2. SUB from AC contents of memory location 880 . 3. Store AC to memory location 881. Assume that the next value retrieved from device 7 is 6 and that location 880 contains a value of 5 . Prngram counter (PC)= Address of instruction Instruction register (IR)= Instruction being execuled Accumulator (AC)= Temporary storage (c) Internal CPU rugisters 0001= Load AC from memory 0010= Store AC to memory 0101=Add to AC liom memory (d) Partial list of opcodes Figure 1.3 Characteristics of a IIypothetical Machine Fetch stage Execute stage Figure 1.4 Example of Program Execution (contents of memorv and registers in hexadecimal)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started