Control Flow

Loops

Loops Using Pointer Arithmetic

Index vs Pointer Arithmetic

Implementing Loops in Assembly

 

Loop Unrolling

Dissecting A Loop: GOTO

 

Control Flow in the Machine

Extending the ISA: Control Flow

loop: goto end_loop if not (i<10)

Jump Instruction Size

Jump Instruction Example

 

New ISA Instructions

Converting a Loop

 

f

 

-

Implementing Conditionals

Static Procedure Calls

 

Static Procedure Calls

 

Control Flow in Procedure Calls

 
 

Implementing Procedure Return

New ISA Instructions

f

Control Flow in Procedure Calls