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 ...

Get Embedded C Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.