PSYC 1010 Lecture Notes - Lecture 5: Basic Block, Machine Code
naya-2002 and 39638 others unlocked
63
PSYC 1010 Full Course Notes
Verified Note
63 documents
Document Summary
The slides are based on the publisher slides and contribution from profs amir asif and. The slides will be modified, annotated, explained on the board, and sometimes corrected in the class. Based on slides by the author and prof. Branch to a labeled instruction if a condition is true. Beq r s , r t , l1. If (rs == rt) branch to instruction labeled l1; Bne r s , r t , l1. If (rs != rt) branch to instruction labeled l1; Chapter 2 instructions: language of the computer 2. Chapter 2 instructions: language of the computer 3. Can use a base register, the base register is pc. Limits jumps to -215 215 -1. In reality, 00 is appended to the immediate thus instructions (words not bytes) Chapter 2 instructions: language of the computer 4. Branch destination from the low order 16 bits of the branch instruction sign-extend. Chapter 2 instructions: language of the computer 5.