EN

Functions

These are the functions the loader links into the game. Cycle counts are in 6507 cycles, and the marks on the right show support in the latest version of each implementation.

Startup

How the game starts and what the loader tells it.

Flow control

Jumps and delays. They keep the 6507 inside the cartridge’s 4 KB and let you use up an exact number of cycles.

Loads and stores

Loading A, X and Y, and writing to the TIA or to RAM.

Reads

Joysticks, console switches, collisions and the timer.

Bus stuffing

Three-cycle writes where the cartridge forces the data onto the bus while the 6507 writes.

Stack

PHA, PHP, PLA, PLP and JSR, usually with the stack pointing at the TIA.

Overblank

The 6507 runs VSYNC, VBLANK and overscan by itself from RIOT RAM, which leaves the ARM free.

7800 bus

The 7800’s 6502 doesn’t wait for the cartridge, so these functions park it, listen to the bus and feed MARIA’s DMA.

Cartridge ROM

What the cartridge serves when the 6507 reads on its own.

Saving

Non-volatile storage with two slots.

Utilities

Tables and C library functions provided by the loader.

● complete ◐ works with differences ○ exists but does nothing – missing ? no data