Home /Modules/cpu/SPECIFICATION.md

SPECIFICATION.md

lib/cpu/wdc-65c816/SPECIFICATION.md · 74 line(s) · markdown

WDC 65C816 Specification

1. Identity

Model: WDC 65C816 Architecture class: 8/16-bit microprocessor Data path: 16-bit Addressing: 24-bit external address space (16 MiB) Register model: accumulator / indexed register machine

The profile exposes a programmer model while using the shared SLeeLa CPU objects (clock, register file, ALU, decoder, bus) to sequence each instruction.

2. Programmer-visible state

A (8/16), X/Y (8/16), 16-bit stack pointer, direct-page, 24-bit program address, status.

The SLeeLa model stores these in SLRegisterFile and exposes 6 addressable register slots to the runnable model.

3. Address and data path

4. Clock

Rated model clock: about 4 MHz (overclockable in the model via setSpecClock).

The model records nominal frequency, cycle number, bus direction, and completion phase. Clock frequency is not instruction latency: one instruction may consume multiple cycles.

5. Execution model

The SLeeLa model sequences each instruction as:

  1. instruction fetch;
  2. opcode decode;
  3. operand/address acquisition;
  4. ALU/register operation;
  5. memory read/write;
  6. next-instruction transition.

6. Cache

cache coherence protocol: none

7. DMA

The base CPU has no integrated DMA controller; DMA is a system-level bus-master concern and SLDMAController is left uninstantiated for the base profile.

8. Interrupts

The model records interrupt request, recognition, vector/entry and timing through SLInterruptController without inventing undocumented internal behavior.

9. MMU/TLB

The base CPU has no MMU/TLB; address translation is CPU address -> external system address, and any mapping belongs to a surrounding system or later derivative.

10. Evidence labels

Sources