Question: EXERCISE 2 Write a SIM68 program that does the same task as the program from Exercise 1, but for address values a1 ranging from 0

 EXERCISE 2 Write a SIM68 program that does the same taskas the program from Exercise 1, but for address values a1 rangingfrom 0 to 18 (instead of 0 to 20). Your code should

EXERCISE 2 Write a SIM68 program that does the same task as the program from Exercise 1, but for address values a1 ranging from 0 to 18 (instead of 0 to 20). Your code should contain the following two lines: FIB ds dc 9 18 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? EXERCISE 4 Write a MC68000 program that does the same task as the program from Exercise 2 with only 16 instructions or less. EXERCISE 2 Write a SIM68 program that does the same task as the program from Exercise 1, but for address values a1 ranging from 0 to 18 (instead of 0 to 20). Your code should contain the following two lines: FIB ds dc 9 18 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? EXERCISE 4 Write a MC68000 program that does the same task as the program from Exercise 2 with only 16 instructions or less

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!