emuforge

The hardware

Each page says what a part of the Super Nintendo Entertainment System does, how snesemu emulates it, where its facts are from, and what is missing or a guess. Where parts talk to each other, it goes through an example step by step. To see how all parts run together, start with the architecture.

PageWhat is in it
The main processorthe 65C816, its memory map, how long an access takes, interrupts, and the multiplier and the divider. An IRQ in the middle of the picture
DMA and HDMAthe eight channels, how long they take, and what they cannot do. A window that HDMA changes from line to line
The picturemodes, backgrounds, mode 7, objects, windows, colour math and counters, and how the picture is drawn late
Soundthe sound processor, its ports and timers, our boot program, and the S-DSP with its 32 steps. An upload from both sides
Cartridgesthe header, how the map is found, what is where, save memory, what a battery keeps with a clock, and how a chip is found
Controllersthe pads, read by the program or by the console. A press of a button on its way to the game

Some cartridges have a chip of their own:

PageWhat the chip isIn the core
The Cx4a processor for mathematics, with tables that are made from formulasyes
The Super FXa processor that drawsyes
The SA-1a second, faster 65C816, with DMA and moreyes
The DSP-1a chip for mathematics, of which only a part is known in public. Where games showed its registersin part: commands are missing
The S-DD1decompresses graphics while a DMA reads them. A DMA of 64 bytesyes
The SPC7110decompresses data, and can have a clock. The games' own test of ityes
The OBC1 and the S-RTCone changes a copy of the objects' table, and the other one is a clockyes

The pages of the Cx4, the Super FX and the SA-1 say who can use the ROM and the RAM when, how the chip interrupts the main processor, and what is seen at which time. The other chips have no interrupt, and do nothing between two accesses but count a clock. Status has the state of each part, and the games that do not work.

From commit 019fda0af379. Edit this page