CSE360_HW5

CSE360_HW5 - CSE360 |1 Abdulwahab Alkharashi & Hany...

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

View Full Document Right Arrow Icon
C S E 3 6 0 | 1 Abdulwahab Alkharashi & Hany Rashwan Homework #5 5-1: #16- page 158: As the textbook describes bitwise operations partially ORN Rd, Rs1, Rs2 represents Bitwise of a given value Rs1 with the bitwise inverse of the value in Rs2. Not is similar to NEG and MOVE operations, however, it does not map into 3- address instructions used in the load/store architecture. Therefore, the assembler may implement this op using R0 and ORN operations . 5-2: Sub % r11, % r10, % r12 ! Get the number of addition when it is generating set 0x80000000, %r8 sra %r8, %r12, %r8 sub %r11, 31, %r12 neg %r12 ! Convert from minus to positive? Do we need to do this? srl %r9, %r12, %r8 or %r9, %r8, %r9 5-3: #5: The difference between direct-memory addressing and memory indirect addressing is that while memory-indirect addressing has the instruction encoding as the address of the operation’s value, direct-memory will just have the instruction encoding as the operation’s value, rather than its address. #6:
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/08/2011 for the course CSE 360 taught by Professor Sam during the Spring '11 term at Ohio State.

Page1 / 3

CSE360_HW5 - CSE360 |1 Abdulwahab Alkharashi & Hany...

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