1. Engineering
  2. Computer Science
  3. please i attached program excursion example refer to that thank...

Question: please i attached program excursion example refer to that thank...

Question details
Please I attached program excursion example refer to that.
Thank you.

Program Execution Description Using diagrams, show the portions of memory and processor registers for the program execution for swapping two integers as follows: X=5 Temp X X-Y Y Temp Show each fetch and execute cycle side-by-side in a separate diagram. Your initial diagram will show the instructions and data in memory and the PC containing the address of the first instruction and the IR containing the first instruction to be executed. Use the following opcodes: 0001 Load AC from Memory 0010 Store AC to Memory
CPU Registers Memory 300 1 940 01 5 9 CPU RegistersMemory 300 PC 3001 9 4 0 301 AC O IR 19 4 0 IR 302 2 94 940 0 0 0 3 941 940 0 0 0 3 941 0 0 0 2 Step I Step 2 Memory 0019 40 CPU Registers 302 CPU RegistersMemory 3 0 1 PC 300 1 9 4 0 940 0 0 03 941 0 0 0 2 940 0 0 0 3 941 0 0 0 2 Step 3 Step 4 CPU Registers Memory 0019 40 CPU RegistersMemory 302 PC 300194 0303 111R 940 0 0 0 3 941 940 0 0 0 3 941 Step 5 Step 6 Figure 3.5 Example of Program Execution (contents of memory and registers in hexadecimal)
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution