Skip to main content

Computer Architecture · Instruction-set architecture and assembly semantics

A processor uses 32-bit little-endian memory and 32-bit instructions that are always…

Problem

Computer Architecture practice problem

A processor uses 32-bit little-endian memory and 32-bit instructions that are always aligned to a multiple of 4. An instruction II occupies addresses 0x00001000 through 0x00001003. Memory bytes are:

• address 0x00001000 contains 0x13
• address 0x00001001 contains 0xA5
• address 0x00001002 contains 0x00
• address 0x00001003 contains 0x00
• address 0x00001004 contains 0x93
• address 0x00001005 contains 0x05
• address 0x00001006 contains 0x20
• address 0x00001007 contains 0x00

Determine the 32-bit instruction word fetched from PC = 0x00001000, and the 32-bit instruction word fetched from PC = 0x00001004. Give both results as eight hexadecimal digits.

Hint

Hint

Little-endian means the byte at the smallest address is the least-significant byte of the 32-bit word.

Check your work

Work the problem yourself first. Then open it in Training to check your answer and read the full worked solution.

Create a free account to check your answer and see the solution. Create a free account.

More Computer Architecture practice problems