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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.