Click here to start

Table of contents

Lecture 3 Arithmetic Operations/ Condition Code Register

Arithmetic Instructions

Slide 3

Slide 4

Arithmetic Instructions-Addition

Arithmetic Instructions-Subtraction

Slide 7

Slide 8

Slide 9

Scaling/Offsetting

Slide 11

Slide 12

Laboratory 3.1 : Straight Line

Flag/Condition Code Register

Condition Code Register

Multibyte Addition

Slide 17

2’s Complement

Slide 19

Multibyte Subtraction

Branching

Slide 22

Branch Instructions

Common Branch Instructions

Slide 25

Slide 26

Compare Instructions

Slide 28

Slide 29

Laboratory 3.2 : Condition Code Register

Laboratory 3.2 (cont)

Slide 32

Slide 33

Slide 34

Slide 35

Slide 36

Slide 37

Quiz

Quiz (cont)

Slide 40

Complex Branch Instructions

Slide 42

Slide 43

Table Lookup

Laboratory 3.3 : Table lookup

Slide 46

Author: Richard Pfile and Stanley Chien

Edited by: Sarah Koskie, Fall 2003

E-mail: skoskie@iupui.edu