init.asm - 89erik/NES-breakout GitHub Wiki
This file contains the first instructions to be executed at boot. It initializes the PPU and all state variables. The procedure is roughly as follows:
- Wait for the PPU to boot.
- Disable PPU rendering.
- Load palette.
- Fill background.
- Init stack pointer
- Init state variables
- Init OAM data, mainly sets the tile, colors, initial position etc. of sprites.
- Enables PPU rendering.