Question

Give the bit pattern for the instruction LDWX 0x0124,x (pep9)

Give the bit pattern for the instruction LDWX 0x0124,x (pep9)

Homework Answers

Answer #1

First 8 bits for LDA instruction will be 1100 raaa.

from them,
First 4 bits,
Instruction specifier for LDA instruction is 1100.

For 5th bit,
if it is accumulator then 1 and if index register then 0.
Here index register X is used. So, r = 1 means 5th bit will be 1.


Other 3 bits(6, 7 and 8) represents addressing mode. x from given instruction specifies Indexed addressing mode.
For index addressing aaa = 101.
Thus,

Fisrt 8 bits will be 1100 1101

Here hexadecimal constant is 0124. Thus other bits are 0000 0001 0010 0100.

Thus, final bit pattern for LDWX 0x0124, x will be
1100 1101 0000 0001 0010 0100.

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
Give the bit pattern for the instruction LDWX 0x54C1,d that instruction is in Assembly Language
Give the bit pattern for the instruction LDWX 0x54C1,d that instruction is in Assembly Language
1. Give the bit pattern for the instruction STWX 0x4C1A,d
1. Give the bit pattern for the instruction STWX 0x4C1A,d
Please convert the following bit pattern to a MIPS instruction. 0000 0001 0110 0110 0100 1000...
Please convert the following bit pattern to a MIPS instruction. 0000 0001 0110 0110 0100 1000 0010 0000 1000 1101 1001 1010 0000 0000 0001 1100
14.5. Give the name of the bit, the name of the register that it is in,...
14.5. Give the name of the bit, the name of the register that it is in, the register's address, which bit, and the default or reset state of the bit for each of the following: a-What bit indicates that the timer has overflowed? b-What bit enables the timer overflow interrupts? c-What bits are used to prescale the timer clock?
Suppose the opcode of an MIPS instruction is 0 in decimal, the funct is 011000 in...
Suppose the opcode of an MIPS instruction is 0 in decimal, the funct is 011000 in binary, and the rest of the machine code is c4000 in hexadecimal (from high-order bit to low-order bit). What is the instruction? When showing the registers, use names (e.g. $t0, $s2) instead of indices (e.g $8, $17).
5. Suppose we have a 32-bit computer with an instruction set that supports immediate instructions as...
5. Suppose we have a 32-bit computer with an instruction set that supports immediate instructions as shown below: Opcode Source Register Destination Register immediate 6 bits 5 bits 5 bits 16 bits (a) How many registers at most does this computer have? (5%) (b) How many operations at most can this computer have? (5%) (c) What is the range of the number in the “immediate” field in 2'scomplement format? (5%)
Create a FSM that detects the input bit pattern ‘01’. The output will be ‘0’ until...
Create a FSM that detects the input bit pattern ‘01’. The output will be ‘0’ until the exact pattern ‘01’ is received. At the point of receiving ‘01’, the FSM will output 1, and then go back to output ‘0’ until the next ‘01’ is received. 1) Draw the Moore FSM diagram for the above 2) Write the FSM tables: a. State Assignment (Gray Encoding) b. State Output c. State Transition Tables 3) Simplify the Output logic (use K-Map if...
Explain how program evaluation can contribute to the improvement of curriculum and instruction. please give an...
Explain how program evaluation can contribute to the improvement of curriculum and instruction. please give an example as well as a reference.
Instruction: Describe the method of establishing and evaluating for a triple integral. Give an example using...
Instruction: Describe the method of establishing and evaluating for a triple integral. Give an example using one of the following options: (a) triple iterated integral, (b) use of spherical coordinates, (c) use of cylindrical coordinates.
You are designing an instruction set for an embedded system and have decided to use a...
You are designing an instruction set for an embedded system and have decided to use a 16-bit representation for integers and floating point numbers. What is the 16-bit binary representation (in hexadecimal using lower-case letters, e.g., 0x39ab) of -13 (base 10) when represented as a two’s complement integer?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT