lecture21

lecture21 - Foundations of Embedded Systems A Term Spring...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Foundations of Embedded Systems A Term Spring 2008 Lecture #21: Functions and the Stack Reading for Today: MSP430 User's Guide Ch 3 Reading for Next Class: MSP430 User's Guide Ch 7 HW #5 (on web): Due Thursday 10/9/2008 in class HW #6 (on web): Due Monday 10/13/2008 in class Lab #3 (on web): Report due NOW! Lab #4 (on web): Due Thursday 10/16/2008 Last Class: Assembler directives and the format of assembly files --> directives tell IAR assembler program how to organize code & memory >> Using CMP (and TST) with conditional jumps (JNZ, JC, JEQ, etc) and JMP to create decision structures and loops > see lect20.s43 for examples >>>>>>>> Remember: All JUMPS are ONE WAY trips! <<<<<<<<< Jumps also have limited range (511 words backwards or 512 words forwards much smaller than size of code memory >> Functions in MSP430 Assembly-- Like functions in C (often called procedures or subroutines)-- Intended to perform specific, small function-- Meant to be reusable Syntax for a defining a function or procedure myProc ; Beginning of function should have label...
View Full Document

Page1 / 8

lecture21 - Foundations of Embedded Systems A Term Spring...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online