Question

Generate hexadecimal machine code for the following MC68000 instructions. (§3.3) a. MOVE.L (A2), D4 b. MOVE.W...

Generate hexadecimal machine code for the following MC68000 instructions. (§3.3) a. MOVE.L (A2), D4 b. MOVE.W 2AH(A3, D6), D1
c. ADD.L A5, D6
d. ROL #3, D4
e. BGT -24

Homework Answers

Answer #1

Answer:- a) MOVE.L (A2), D4
The format for MOVE is-

So the machine code is-

Answer:- b)  MOVE.W 2AH(A3, D6), D1
Need to check.

Answer:- c)  ADD.L A5, D6
The format for MOVE is-


So the machine code is-

Answer:- d) ROL #3, D4
The machine code format is-


The machine code is-

Answer:- e) BGT -24
The machine code is-

Dear student, please refer to MOTOROLA M68000 FAMILY Programmer’s Reference Manual for more detail. You can start from page number 4-6.

Know the answer?
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
Similar Questions
Please add some explanation if possible 1.The machine code of LEGv8 instruction SUB X15,X16,X17 in hexadecimal...
Please add some explanation if possible 1.The machine code of LEGv8 instruction SUB X15,X16,X17 in hexadecimal is? 2.The LEGv8 assembly instruction assembled into the hexadecimal machine code D1001695 is? 3.What does the LEGv8 instruction below do? LSL X12,X12,#8 4. Which LEGv8 instruction set X12 to be X10's one's complement? (Assume X9 contains hexadecimal FFFFFFFF.) 5. What is the minimum number of LEGv8 assembly instructions needed to perform the following task? A[20] = A[10] + b + c - 8
Consider the following MIPS assembly instructions: andi $s0, $t1, 65 a) What will be the machine...
Consider the following MIPS assembly instructions: andi $s0, $t1, 65 a) What will be the machine code for the assembler instruction? Justify the answer and state it in hexadecimal form. b) In which building blocks in the processor are the pieces in the machine code for the assembler instruction above used?
A student will randomly select 5 cards from a deck of 52 cards. Each card is...
A student will randomly select 5 cards from a deck of 52 cards. Each card is uniquely identified by a label which is a combination of a letter (one of the following: A, B, C, D) followed by a number (one of the following: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13). The labels on the cards are A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, B1, B2, B3, B4,...
A student will randomly select 5 cards from a deck of 52 cards. Each card is...
A student will randomly select 5 cards from a deck of 52 cards. Each card is uniquely identified by a label which is a combination of a letter (one of the following: A, B, C, D) followed by a number (one of the following: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13). The labels on the cards are A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, B1, B2, B3, B4,...
Write an R code that does the following: (a) Generate n samples x from a random...
Write an R code that does the following: (a) Generate n samples x from a random variable X that has a uniform density on [0,3]. Now generate samples of Y using the equation: y = α/(x + β). For starters, set α = 1, β = 1 The R code: x=runif(n=1000, min = 0, max = 3) x y=1/x+1 y Please answer the following: b) Use plot(x,y) to check if you got the right curve. c) How does the correlation...
Convert each of following numbers to Hexadecimal numbers, showing all steps. a. (1111 0111)2 b. (1010...
Convert each of following numbers to Hexadecimal numbers, showing all steps. a. (1111 0111)2 b. (1010 1010 1010)2 c. (777) 8 d. (443) 8 e. (998)10 f. (1066)10
b) The directors of Chiyeyeye are looking at purchasing a machine that with generate the following...
b) The directors of Chiyeyeye are looking at purchasing a machine that with generate the following income of ZMW 1000 in year 1, ZMW 2000 in year 2, ZMW 3000 in year 3, ZMW 4000 in year 4 and ZMW 6000 in year 5. The cost of the machinery ZMW 12000 which will be depreciated straight line to zero over the five year life of the project. The cost of capital is 12% (i) What is The NPV? (ii) What...
Generate test cases for the following code by using MC/DC. a)       Draw the CFG. b)       What is MC/DC...
Generate test cases for the following code by using MC/DC. a)       Draw the CFG. b)       What is MC/DC logic coverage criteria? c)        List the test cases. d)       Validate the test cases can achieve MC/DC. public void TestValues( int a, int b, ref int x ) {     x = 0; if (a > 0 || b < 0)         x = 1;     else if (a > 10  && b > 10)         x = -1;                         }
Write the C55x assembly code for each of the following C snippet code shown below. Assume...
Write the C55x assembly code for each of the following C snippet code shown below. Assume the 8-bit values a, b, c, and d are stored in locations 0x600, 0x601, 0x602, and 0x603 respectively in the memory. Store the result x in location 0x604 and y in location 0x60C. Do not use software to generate the assembly code and comment your code. x = (a - b)3 - (c*d); for (j=0;j<=200;j++)   y = y + (a * b);
C CODE PLZ! All instructions are in sections of code #include <stdio.h> /* TODO: Define 3...
C CODE PLZ! All instructions are in sections of code #include <stdio.h> /* TODO: Define 3 functions input, gcd and lcm in such a way that the main function below compiles correctly and has the correct behavior. The input function prompts the user to enter a non-negative integer. If the user enters a negative integer, the function prints a "sorry" statement and prompts the user again. It keeps on prompting until the user enters a non-negative number. The input function...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT