2.9. PIC16 C Assembler Routines

• Reasons for using assembly language

• Insertion of assembler sequence

• Overview of assembly language

The default programming language of any microprocessor or microcontroller is its own assembly language. The syntax used for any given processor is determined by its internal architecture and the machine code instructions that control it. Assembly language is the first-level abstraction from machine code, where each instruction is represented by a corresponding text mnemonic.

Program Compilation

When compiled, a C program is converted into assembler, then to machine code. We also have seen that one C statement translates into a whole sequence of assembler instructions. Since each C statement is independently translated ...

Get Programming 8-bit PIC Microcontrollers in C 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.