Home /Modules/cpu/CPU.md

CPU.md

lib/cpu/sega-game-gear/CPU.md · 46 line(s) · markdown

Sega Game Gear (Z80) CPU

The SLeeLa Sega Game Gear (Z80) profile models the processor as a 8-bit handheld main CPU (Z80) with a accumulator / indexed register machine and an architectural, timing-oriented view of its execution.

Identity

FieldValueEvidence
FamilySega Game Gear (Z80)documented
Data width8-bitdocumented
External address width16-bitdocumented
Address space64 KiBderived from 16-bit addressing
Programmer registersZ80 register model (AF, BC, DE, HL + alternates, IX, IY, SP, PC)documented
Rated clock (model)about 4 MHzdocumented/representative
Cache (model)Nonedocumented/architecture model
Integrated DMANodocumented/architecture model
MMU/TLBNodocumented/architecture model

The profile is a functional model: enough register, memory and timing structure to run the CPU and host SLeeLa/C/C++ workloads, not a cycle-accurate silicon recreation.

SLeeLa modeling

The profile composes the shared CPU objects:

Cache, DMA and MMU objects are instantiated only where this part actually integrates them (see CACHE.md, DMA.md).

Variant rule

Sega Game Gear shares Master System hardware with a Zilog Z80 CPU. Do not silently merge variant-specific I/O, cache, addressing or opcode behavior into this base model.

See SPECIFICATION.md for the detailed model.

Sources