© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. SmithRP2040 Assembly Language Programminghttps://doi.org/10.1007/978-1-4842-7753-9_4

4. How to Load and Add

Stephen Smith1  
(1)
Gibsons, BC, Canada
 

In this chapter, we will go slowly through the MOV, ADD, and SUB instructions to lay the groundwork on how they work, especially in the way they handle parameters (operands). In the following chapters, we can proceed at a faster pace as we encounter the rest of the ARM instruction set. Before getting into the MOV, ADD, and SUB instructions, we will discuss the representation of negative numbers and the concepts of shifting and rotating bits.

About Negative Numbers

In the previous chapter, we discussed how computers ...

Get RP2040 Assembly Language Programming: ARM Cortex-M0+ on the Raspberry Pi Pico 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.