Skip to Content
Embedded C Programming
book

Embedded C Programming

by Mark Siegesmund
September 2014
Beginner to intermediate
424 pages
10h 4m
English
Newnes
Content preview from Embedded C Programming
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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C Programming

Practical C Programming

B. M. Harwani

Publisher Resources

ISBN: 9780128013144