Documentation ¶
Overview ¶
Package spectrum implements de ZX Spectrum machine
Index ¶
- Constants
- func New(model int) machine.Machine
- type Joystick
- type Keyboard
- type Spectrum
- func (spectrum *Spectrum) BeginFrame()
- func (spectrum *Spectrum) CPU() cpu.CPU
- func (spectrum *Spectrum) Clock() device.Clock
- func (spectrum *Spectrum) Components() *device.Components
- func (spectrum *Spectrum) Config() *machine.Config
- func (spectrum *Spectrum) Emulate()
- func (spectrum *Spectrum) EndFrame()
- func (spectrum *Spectrum) Init()
- func (spectrum *Spectrum) LoadFile(filename string)
- func (spectrum *Spectrum) LoadState(snap *format.Snapshot)
- func (spectrum *Spectrum) Reset()
- func (spectrum *Spectrum) SaveState() *format.Snapshot
- func (spectrum *Spectrum) SetController(control controller.Controller)
- func (spectrum *Spectrum) TakeSnapshot()
- func (spectrum *Spectrum) VideoMemory() *memory.Bank
- type TVVideo
- type ULA
Constants ¶
View Source
const ( JoystickNone = iota JoystickKempston )
Joystick models
View Source
const ( ZxKey1 = iota ZxKey2 ZxKey3 ZxKey4 ZxKey5 ZxKey6 ZxKey7 ZxKey8 ZxKey9 ZxKey0 ZxKeyQ ZxKeyW ZxKeyE ZxKeyR ZxKeyT ZxKeyY ZxKeyU ZxKeyI ZxKeyO ZxKeyP ZxKeyA ZxKeyS ZxKeyD ZxKeyF ZxKeyG ZxKeyH ZxKeyJ ZxKeyK ZxKeyL ZxKeyEnter ZxKeyCapsShift ZxKeyZ ZxKeyX ZxKeyC ZxKeyV ZxKeyB ZxKeyN ZxKeyM ZxKeySymbolShift ZxKeySpace )
ZX Spectrum Keys
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Joystick ¶
type Joystick struct {
// contains filtered or unexported fields
}
Joystick emulation
func (*Joystick) GetKempston ¶
GetKempston gets kempston status
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
Keyboard is the ZX Spectrum Keyboard
func (*Keyboard) ProcessKeyEvent ¶ added in v0.20.0
ProcessKeyEvent processes the keyboard events
type Spectrum ¶
type Spectrum struct {
// contains filtered or unexported fields
}
Spectrum the ZX Spectrum
func (*Spectrum) BeginFrame ¶
func (spectrum *Spectrum) BeginFrame()
BeginFrame begin emulation frame tasks
func (*Spectrum) Components ¶
func (spectrum *Spectrum) Components() *device.Components
Components gets the machine components
func (*Spectrum) SetController ¶
func (spectrum *Spectrum) SetController(control controller.Controller)
SetController connect controllers & components
func (*Spectrum) TakeSnapshot ¶
func (spectrum *Spectrum) TakeSnapshot()
TakeSnapshot takes and saves snapshop of the machine state
func (*Spectrum) VideoMemory ¶
VideoMemory gets the video memory bank
type TVVideo ¶ added in v0.20.0
type TVVideo struct {
// contains filtered or unexported fields
}
TVVideo is the spectrum RF video device
func (*TVVideo) DoScanlines ¶ added in v0.20.0
func (tv *TVVideo) DoScanlines()
DoScanlines refresh TV scanlines
func (*TVVideo) EndFrame ¶ added in v0.20.0
func (tv *TVVideo) EndFrame()
EndFrame updates screen video frame
func (*TVVideo) SetAccurate ¶ added in v0.20.0
SetAccurate sets de video emulation algorithm
Click to show internal directories.
Click to hide internal directories.