Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

Why does sin 2x + cos2x =1 ?

Answered: 1 week ago

Question

What are DNA and RNA and what is the difference between them?

Answered: 1 week ago

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago

Question

3. Describe phases of minority identity development.

Answered: 1 week ago