PSYC 1010 Lecture Notes - Lecture 5: Basic Block, Machine Code

6 views10 pages
23 Feb 2022
Department
Course
Professor
naya-2002 and 39638 others unlocked
PSYC 1010 Full Course Notes
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.

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