The .data
and .bss
sections are where Assembly stores variables. You’ll load data from these into registers to work with them.
section .data
— stores initialized data (like strings, numbers)section .bss
— reserves space for variables you’ll initialize latersection .text
— your executable code lives hereresd
reserves space in the .bss
for a 32-bit value without initializing it.