dart_z80 library

Classes

Disassembler
A simple disassembler for Z80 opcodes.
Instruction
Represents a single Z80 assembly instruction
MemoryBase
A general interface for contiguous memory space, as used in a microcomputer like the ZX Spectrum or TRS-80.
RAM
A simple, contiguous, read/write memory space.
Z80
The Zilog Z80 emulator.

Functions

createWord(int lowByte, int highByte) int
Convert two bytes into a 16-bit word.
highByte(int value) int
Extract the high byte of a 16-bit value.
isBitSet(int value, int bit) bool
Return true if a given bit is set in a binary integer of arbitrary length.
isEven(int value) bool
Return true if a given value is even.
isOdd(int value) bool
Return true if a given value is odd.
isParity(int value) bool
Calculate parity of an arbitrary length integer.
isSign16(int value) bool
Return true if a signed word is negative.
isSign8(int value) bool
Return true if a signed byte is negative.
isZero(int value) bool
Return true if a given value is zero.
lowByte(int value) int
Extract the low byte of a 16-bit value.
onecomp16(int value) int
onecomp8(int value) int
resetBit(int value, int bit) int
Reset a given bit in a binary integer of arbitrary length.
setBit(int value, int bit) int
Set a given bit in a binary integer of arbitrary length.
toBin16(int value) String
Format a word as a binary string.
toBin32(int value) String
Format a dword as a binary string.
toBin8(int value) String
Format a byte as a binary string.
toHex16(int value) String
Format a word as a hex string.
toHex32(int value) String
Format a dword as a hex string.
toHex8(int value) String
Format a byte as a hex string.
twocomp16(int value) int
Calculates 2s complement of a 16-bit value.
twocomp8(int value) int
Calculates 2s complement of an 8-bit value.

Typedefs

PortReadCallback = int Function(int)
PortWriteCallback = void Function(int, int)