Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored 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