Chapter 6

Instruction Usage Examples

Abstract

This chapter covers various examples of how some of the instructions are used commonly in program operations including program flow control, memory accesses, and data processing.

Keywords

Bit field processing; Branch tables; Conditional branch; Data accesses; Data conversions; Examples of instruction usages; Program flow control; Square root

6.1. Overview

In the last chapter we have looked at the instruction set of the ARM® Cortex®-M0 and Cortex-M0+ processors. In this chapter we will see how these instructions are used to carry out various basic operations.
Note for beginners
The examples in this chapter are aiming to help understanding of the instruction set. However, since most embedded programmers write ...

Get The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition 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.