init.asm - 89erik/NES-breakout GitHub Wiki

Tree: root/src/init/init.asm

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:

  1. Wait for the PPU to boot.
  2. Disable PPU rendering.
  3. Load palette.
  4. Fill background.
  5. Init stack pointer
  6. Init state variables
  7. Init OAM data, mainly sets the tile, colors, initial position etc. of sprites.
  8. Enables PPU rendering.