O'Reilly logo

Embedded C Programming by Mark Siegesmund

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 24

Inline Assembly

Abstract

This chapter explains the PIC assembly language and shows how to insert assembly code inside a C program. Covered are the reasons a programmer may want to use inline assembly and the text will present the best methodologies to accomplish it.

The assembly differences between the PIC families are covered along with a good sampling of each instruction type. The syntax for inline assembly along with instructions for getting along with the compiler are covered.

This chapter takes the opportunity to compare compiler generated assembly to hand coded assembly.

Examples and exercises are for the popular PIC micro-controller manufactured by Microchip.

Keywords

Assembly

PIC instructions

Inline assembly

Linking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required