Spectrum class

Represents the ZX Spectrum 48K.

Encapsulates the various components (memory, ULA and Z80 microprocessor), and coordinates between them.

Constructors

Spectrum(Uint8List rom)
Initializes the ZX Spectrum emulator with a given ROM image.

Properties

displayAsBitmap Uint8List
A BMP representing the current frame displayed on the screen.
no setter
hashCode int
The hash code for this object.
no setterinherited
memory SpectrumMemory
The computer memory
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ula ULA
The ULA (uncommitted logic array)
final
z80 ↔ Z80
The Z80A microprocessor
latefinal

Methods

keyDown(String key) → void
Handle a key down event
keyUp(String key) → void
Handle a key up event
loadMemory(int origin, Iterable<int> data, {bool ignoreRomProtection = false}) → void
Load a list of byte data into memory, starting at origin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readPort(int addressBus) int
Reads a value from an I/O port.
reset() → void
Resets the ZX Spectrum (equivalent to a power cycle).
toString() String
A string representation of this object.
inherited
writePort(int addressBus, int value) → void
Writes a value to an I/O port.

Operators

operator ==(Object other) bool
The equality operator.
inherited