Chapter 4. Assembly Language Programming

In this chapter, we will cover the following:

  • Writing Cortex-M4 assembly language
  • Passing parameters between C and the assembly language
  • Handling interrupts in assembly language
  • Implementing a jump table
  • Debugging assembly language

Introduction

This chapter explains how to write functions in assembly language. Assembly language is a low-level programming language that is specific to a particular computer architecture. So, unlike programs written in high-level languages, programs written in assembly language cannot be easily ported to other hardware architectures. Assembly language programs are converted into object code by a program called an assembler. In practice, assembly language is used only rarely and most ...

Get ARM® Cortex® M4 Cookbook 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.