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
Given a 12-bit IEEE floating point format with 5 exponent bits: Give the hexadecimal representation for...
Given a 12-bit IEEE floating point format with 5 exponent bits: Give the hexadecimal representation for the bit-pattern representing −∞−∞. Give the hexadecimal representation for the bit-patterns representing +0 and -1. Give the decimal value for the floating point number represented by the bit-pattern 0xcb0. Give the decimal value for largest finite positive number which can be represented? Give the decimal value for the non-zero negative floating point number having the smallest magnitude. What are the smallest and largest magnitudes...
Design an expanding opcode instruction set for a computer having 18-bit instructions and the following types...
Design an expanding opcode instruction set for a computer having 18-bit instructions and the following types of instructions. There are 16 CPU registers and 16 bit addresses a. T1: 63 instructions with three registers referenced b. T2: 15 instructions with an 8 bit constant value c. T3: 16 instructions with one register reference
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?
What decimal number does the bit pattern 1101 1011 represent if it is a: • [1...
What decimal number does the bit pattern 1101 1011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? Please Explain and Show all work
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement...
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement integer An unsigned integer A floating point number assuming the IEE 754 single precision format PLEASE EXPLAIN AND SHOW WORK
Supposetheregisters4and5containthebit patterns 3C and C8, respectively. What bit pattern is left in register 0 after executing...
Supposetheregisters4and5containthebit patterns 3C and C8, respectively. What bit pattern is left in register 0 after executing each of the following instructions: 5045 7045 8045 9045
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).
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT