While registers store the values that the CPU is actively processing, most of a program’s data is in main memory, not in registers. In this chapter, we will learn the basics of how to access main memory in assembly language.
6.1 Adding Fixed-Length Data Sections to Programs
To begin with, we will look at adding fixed-length data sections to programs.
Data sections are marked in code with the command .section .data . This will allow you to add fixed-length data sections to your program. Within the data section, ...