CSE 220 Lecture Notes - Lecture 5: Logical Shift, Bitwise Operation, Exclusive Or

63 views5 pages

Document Summary

32-bit constants use load upper immediate (lui) and ori: Int a = 0xfedc8765; # = a. # = a addi , , 0x4f3c lui , 0xfedc ori , , 0x8765. This will determine if a value that"s non zero exists in the upper or lower. If it doesn"t, it will fill in the space with 0s. Example: assume that str is a label (ie, a memory address) La , str # loads addr of str into . The move pseudoinstructions copies the contents of one register to another. Move , # equiv to add , , sh. 32-bit x 32-bit multiplication produces a 64-bit result. Mult , this instruction takes in 2 registers and stores in hi and lo. Result will be stored in registers hi and lo. 32-bit division produces a 32-bit quotient and a 32-bit remainder. Instructions to move values from lo/hi special registers.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents