O'Reilly logo

The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition by Joseph Yiu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required