The map
A processor finds everything by number. Each byte it can reach has an address, like a house number on a street. A memory map is the chart of which addresses lead where: to the program, to variables, or to hardware.
On an Arduino Uno R3 the ATmega328P keeps its program in 32 KB of flash, byte addresses 0x0000 to 0x7FFF. Flash keeps the code with the power off. This chip gives flash a map of its own, apart from data.
Variables live in a second map, the data map. Its top part, 0x0100 to 0x08FF, is 2,048 bytes of SRAM: fast, but wiped at power off. Globals, the stack and the heap all share it.
Lower down, 0x0020 to 0x00FF, sit 224 addresses that are not memory at all. They are I/O registers, wired to the pins, timers and serial port. Writing one changes hardware. This is called memory-mapped I/O.
Pin 13 by hand
The Uno's LED is on pin 13, which is wired to port B, bit 5 of the chip (PB5). Two 8-bit registers control it: DDRB at 0x24 picks each pin's direction, and PORTB at 0x25 sets it HIGH or LOW.
In C++ a pointer holds an address. Lines 2 and 3 turn the numbers 0x24 and 0x25 into pointers to one byte. volatile tells the compiler to really do every read and write. Now *portb is the PORTB register.
*ddrb |= 1 << 5 reads DDRB, sets bit 5 and writes it back. 1 << 5 is 0b00100000, or 0x20. DDRB bit 5 becomes 1, so pin 13 is now an output: what pinMode(13, OUTPUT) does.
*portb |= 1 << 5 sends address 0x25 and the new byte from the CPU. PORTB bit 5 becomes 1, so pin 13 is driven to 5 V and the LED lights. No library call: a write to an address changed a pin.
Libraries and other chips
digitalWrite(13, HIGH) ends with the same write. First it reads pin 13's port and bit from tables kept in flash, turns off PWM if the pin has it, and blocks interrupts during the write. Safer, but slower.
Arm chips like the STM32F4 use one map for everything: flash at 0x0800 0000, SRAM at 0x2000 0000, peripherals from 0x4000 0000. Its GPIOD port starts at 0x4002 0C00. Different numbers, same idea: the address picks memory or hardware.
What happens
;; step 1/10 · addresses address a number that picks one byte memory map which addresses lead where ATmega328P data map, 0x0000 to 0x08FF: 0x0000 to 0x001F 32 working registers 0x0020 to 0x005F 64 I/O registers 0x0060 to 0x00FF 160 extended I/O registers 0x0100 to 0x08FF 2,048 bytes of SRAM
The card shows the body of setup(). The real names DDRB and PORTB from <avr/io.h> expand to exactly this kind of volatile pointer access: avr-libc adds 0x20 to the I/O address, so PORTB at I/O 0x05 is data address 0x25. The AVR keeps program and data in separate maps, so address 0x0100 means one thing in flash and another in SRAM. Reading a constant table from flash needs special instructions (LPM, wrapped by pgm_read_byte), which is why Arduino marks its pin tables PROGMEM.