Roll #________________ Name ____________________________ Sec_________
Submission Deadline: Tuesday Sep 25,
2018 in class Q1: The hypothetical machine of Figure. A also has two I/O instructions: 0000 --Load AC from Memory 0001 --Store AC to Memory 0010 --Load AC from I/O 0011 --Store AC to I/O 0100 --Add to AC from memory In these cases, the 8-bit address identifies a particular I/O device. Show the program execution in Figure A for the following program: i. Load AC from Memory location 0400. ii. Add AC and contents of memory location 0401. iii. Store AC to device 2. iv. Load AC from device 1. v. Add AC and contents of memory location 0401 vi. Store AC to memory location 0401 Assume that the next value retrieved from device 1 is 17 and that location 0400 contains a value of 3. Figure A: The hypothetical machine