lecNew-24-MixedC&ASM

lecNew-24-MixedC&ASM - WPI ECE2801 Foundations of...

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

View Full Document Right Arrow Icon
WPI ECE2801 Foundations of Embedded Computer Systems Lecture 24: Mixed C and Assembly Programming
Background image of page 1

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

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 24 Review: Interrupt A method to change program flow A very useful mechanism to response to time-critical event. It draws attention of CPU to the event that needs to be taken care of when such an event does happen. How CPU responds to an interrupt? Push PC and SR onto the stack Execute the Interrupt Service Routine Where to find the ISR? -- Interrupt vector table at 0xFFE0-0xFFFE Restore SR and PC to return to the main program
Background image of page 2
EE2801: Foundations of Embedded Systems Lecture 24 Mixed C and Assembly Programming C: high level language, easy to learn, structured design and software development methods aid in creating reliable code Assembly: low-level language, speed, efficiency, and direct control of the peripheral devices. Mixed C and Assembly: enjoy the benefits from both
Background image of page 3

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

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 24 Program Development Flow OS Resources (procedures, functions) High Level Language Compiler Assembly Language Assembler Debugger Relocate-able, Unresolved Object Code Linker Loader Relocate-able Executable Code Relocated Execution Code Now the fun begins!
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course ECE 2801 taught by Professor Jarvis during the Spring '08 term at WPI.

Page1 / 13

lecNew-24-MixedC&ASM - WPI ECE2801 Foundations of...

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

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