NobleBlocks

Research indexBook chapter

Parameter Passing

Dunbar

Maker Innovations Series1 Jan 2026

NobleIDark:/48914/w1/20261105/A19B07D4DOI10.1007/979-8-8688-2442-5_5

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

This chapter, explains how the avr-gcc compiler suite uses the available registers in the ATmega328P and the precautions that your Assembly code must take if it uses any of the registers itself. We also look at the different ways in which parameters are passed from C \(++\) to your Assembly code; as well as an in depth discussion of the stack frame pointer, as documented in the avr-gcc documentation; and discover exactly how useful it is, or is not, in our Assembly functions.

Discussion

More

Suggest a correction or report