hao_hw2 - the Carry flag(rD[0 ←(rA 0(rD[1:31 ←(rA[0:30...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. lwi r7, r0, 0xAC08 r7 = 0x12345678 rsubi r8, r0, 39 r8 = 39 + 1 = 40 = 0x00000028 xor r9, r7, r8 r9 = 0x12345650 MSR[29] = 0 2. Hex: 0x12345678 Hex: 0x00000028 Hex: 0x12345650 3. add r3, r0, 0x90A50021 add r4, r3, 0x67FB1FDF rsub r5, 0XD7D920C1,r4 add r6, r5, 0x108300C1 4. Shift Right Arithmetic: Shifts arithmetically the contents of register rA, one bit to the right, and places the result in rD. The most significant bit of rA (i.e. the sign bit) placed in the most significant bit of rD. The least significant bit coming out of the shift chain is placed in
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the Carry flag. (rD)[0] ← (rA)[ 0] (rD)[1:31] ← (rA)[0:30] MSR[C] ← (rA)[31] Shift Right Logical: Shifts logically the contents of register rA, one bit to the right, and places the result in rD. A zero is shifted in the shift chain and placed in the most significant bit of rD. The least significant bit coming out of the shift chain is placed in the Carry flag. (rD)[0] ← 0 (rD)[1:31] ← (rA)[0:30] MSR[C] ← (rA)[31]...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

hao_hw2 - the Carry flag(rD[0 ←(rA 0(rD[1:31 ←(rA[0:30...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online