Question: EXERCISE 1 Consider the following SIM68 assembly code. $1000 de, d0 d0, a0 a0, a1 N(a0), de FOF1 (a1), d2 d2, d3 INCR (a0), d1

EXERCISE 1 Consider the following SIM68 assembly code. $1000 de, d0 d0, a0 a0, a1 N(a0), de FOF1 (a1), d2 d2, d3 INCR (a0), d1 d2, FIB(a1) d1, al d3, FIB(a1) d1, al d3, d2 d2, d3 a1, d1 d0, d1 LOOP EXIT (a0), de #0 10 20 2 1 01 org main sub 02 03 04 05 06 07 08 09 10 movea movea move move move LOOP move 12 13 14 15 16 17 18 19 20 21 move adda move adda add add move blt move trap FIB ds INCR dc FOF1 dc EXIT dc 23 24 25 end 1. What is the memory location (address) of label N? 2. What is the content of MEM[FIB], MEMIFIB+2], MEM[FIB+4]. MEM[FIB+18] when the program terminates? 3. What does the code do? 4. What are the values taken by (d0, d1, d2, d3) when the program terminates
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
