ECET 330 ECET/330 ECET330 Week 3 iLab Introduction to Loops and Subroutines in Assembly

ECET 330 ECET/330 ECET330 Week 3 iLab Introduction to Loops and Subroutines in Assembly

Objectives:

  1. To become familiar with conditional branch instructions
  2. Understanding how to write loops
  3. Understanding how to write subroutines

What does the CPU do (in terms of register contents and stack) when it executes a JSR instruction?

What does the CPU do (in terms of register values and stack) when it executes a RTS instruction?