platform

package
v0.0.0-...-4c3c946 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const FMX_INT_MASK_REG1 = 0x00_014D

keyboard memory registers

View Source
const FMX_INT_PENDING_REG1 = 0x00_0141

Variables

This section is empty.

Functions

func LoadHex

func LoadHex(cpu emu.Processor, filename string) error

XXX - move error support and displaying into upper layer

Types

type Config

type Config struct {
	Mode  string
	Disk0 string // path for disk0 image
	Disk1 string // path for disk1 image
	Scale int32  // scaling factor in windowed mode
}

type Platform

type Platform struct {
	CPU   emu.Processor // active processor
	CPU0  emu.Processor // on-board one
	CPU1  emu.Processor // add-on
	GPU   emu.GPU       // active head on two-display nodes
	GPU0  emu.GPU
	GPU1  emu.GPU
	PATA0 *pata.PATA
	PS2   *ps2.PS2
	MATHI *mathi.MathInt

	System byte // system type, const emu.SYS_*

	PS2_queue *list.List // queue for ps2 scancodes

	Init func()
}

func New

func New() *Platform

func (*Platform) InitFMX

func (p *Platform) InitFMX()

func (*Platform) LoadCpuConfig

func (p *Platform) LoadCpuConfig(filename string)

XXX - make it more common and move loadFiles to gui?

func (*Platform) LoadPlatformConfig

func (p *Platform) LoadPlatformConfig(filename string) (*Config, error)

func (*Platform) SendKey

func (p *Platform) SendKey(code byte)

func (*Platform) SendKeyFromQueue

func (p *Platform) SendKeyFromQueue()

at this moment we have some troubles with speed of keyboard routines on emu and sometimes is worthwhile to queue codes

func (*Platform) SetA2560K

func (p *Platform) SetA2560K()

func (*Platform) SetA2560U

func (p *Platform) SetA2560U()

func (*Platform) SetFMX

func (p *Platform) SetFMX()

something like FMX

func (*Platform) SetFranken

func (p *Platform) SetFranken()

func (*Platform) SetGenX

func (p *Platform) SetGenX()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL