Question

1. (20 pts ) Convert the following 68K assembly language instructions into RTL. Write “invalid” for...

1. (20 pts ) Convert the following 68K assembly language instructions into RTL. Write “invalid” for incorrect 68k instructions.

MOVE 3000, 4000

MOVE #4000, 5000

MOVE #12, (A0)

MOVE (A1), (A2)

MOVE #4000, D4

MOVE (A0), D3

ADD #13, D4

ADD (A3), 1234

MOVE D3, #4

MOVE (D3), D2

0 0
Add a comment Improve this question Transcribed image text
Answer #1

RTL forms of given instructions

1) invalid

2)[5000]←4000 , data 4000 is transferred to location 5000

3)[A0]← 12 the data 12 is copied the memory location contain A0

4)invalid

5)[D4]← 4000 , the data 4000 is moved to the register d4

6) [D3]← (A0) the data in A0 location is moved to the d3 register

7)[D4]←[D4]+13 , the number 13 is added to the register D4

8)invalid

9)invalid

10)[D2]← (D3) the data in memory location d3 is copied into the D2 register

Add a comment
Know the answer?
Add Answer to:
1. (20 pts ) Convert the following 68K assembly language instructions into RTL. Write “invalid” for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a program in 68K assembly code that adds an odd parity to each ASCII character....

    Write a program in 68K assembly code that adds an odd parity to each ASCII character. Your code must satisfy the following specifications: 1. Define the following 64 characters in the SRC address.SRC:DC.B 'Computing and Software Systems, University of Washington Bothell' 2. Define the 64-byte space.DST:DC.B 64 3. Read each of the 64 characters, (i.e., each byte) into D0, check the number of 1s in it, set 1 to the MSB with "ORI.B #$80, D0" to create an odd parity,...

  • 4. (20 pts) Write a 68K assembly program to evaluate the following expression for X 2...

    4. (20 pts) Write a 68K assembly program to evaluate the following expression for X 2 and Y=5. Also, write the final value of Z. Z (X3 + Y)/Y-X2) +X2 5. (20 pts) Explain in your own words what happens to the 68k stack when BSR and RTS instructions are executed. Given an example showing the stack 4. (20 pts) Write a 68K assembly program to evaluate the following expression for X 2 and Y=5. Also, write the final value...

  • 1. [2 points] Write a MIPS assembly language program of the following C function and the...

    1. [2 points] Write a MIPS assembly language program of the following C function and the code to call the function: int leaf_example (int g, h, i, j) { int f; f = (g + h) - (i + j); return f; مهه Arguments g, h, i, and j are passed to the function in registers $a0, $al, Şa2, and $a3, respectively while f in $50 (hence, need to save $50 on stack), and the result is to be stored...

  • WRITE THE FOLLOWING CODE IN FLOATING POINT NUMBERS IN ASSEMBLY LANGUAGE USING MIPS IN MARS .data...

    WRITE THE FOLLOWING CODE IN FLOATING POINT NUMBERS IN ASSEMBLY LANGUAGE USING MIPS IN MARS .data prompt: .asciiz "\nMaximum number is : " prompt1: .asciiz "\nMinimum number is : " prompt2: .asciiz "\nRange of the array is : " size: .word 10 #load array array: .word 23, -12, 45, -32, 52, -72, 8, 13,22,876 .text #load address of array and size la $s4,array #load address of A lw $t0,size #load i to t0 jal getArrayRange li $v0, 4    la...

  • Please use C++ as a Programming language and do the tasks specified per the Guideline above...

    Please use C++ as a Programming language and do the tasks specified per the Guideline above and include comments of your work. Please make sure that the following test cases are working: Example 1 For input D13 D60 D76 D12 A17 D98 A94 D70 D3 A23 A42 D45 A100 D50 A99 A22 A87 A4 A90 D88 A71 A20 D39 D83 A97 A56 D28 A9 D43 A19 D5 A11 A54 A73 D54 A9 A24 A58 D6 D80 A72 A47 A82 A12...

  • 1. Write a program in Assembly language using MIPS instruction set that reads two integer numbers...

    1. Write a program in Assembly language using MIPS instruction set that reads two integer numbers from the user named as start and end number and finds out all the prime numbers between start and end (including start and end). Your program should do the validation of both the numbers as follows: i. start number must be smaller or equal to the end number. ii. Both numbers must be positive. iii. The maximum value for the end number is 10000...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT