Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

1) Consider the following RISC-V assembly instructions: slt x6, x0, x5 bne x6, x0, ELSE j DONE ELSE: addi x6, x6, 2 DONE: (2 points) - For what

1) Consider the following RISC-V assembly instructions:

slt x6, x0, x5

bne x6, x0, ELSE

j DONE

ELSE: addi x6, x6, 2

DONE:

• (2 points) - For what value(s) of x5 is the addi instruction executed?

• (2 points) - Why?

2) Provide the type and assembly language instruction for the following hex values:

Address 1000: b3

Address 1001: 0b

Address 1002: 9c

Address 1003: 41

Hint: first convert to binary, and consider big-endian vs. little-endian. Then, divide the bits up into the fields and decipher the opcode and so on.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question