boards

package
v0.0.0-...-244be32 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	CpsBReg  CpsBRegisters
	GFXAreas [4]GFXArea
	GFX      ROMSet
	Z80      ROMSet
	M68k     ROMSet
	Oki      ROMSet
	Cpsb     int // Version of CPS-B
	Post     PostInfo
}

func Get

func Get(name string) *Board

type CpsBRegisters

type CpsBRegisters struct {
	// contains filtered or unexported fields
}

type GFXArea

type GFXArea struct {
	Start int
	Size  int
	Dim   int
}

type PostInfo

type PostInfo struct {
	PostPalette    color.Palette
	PostTile       int
	PostTileWidth  int
	PostTileHeight int
}

type ROM

type ROM struct {
	Filename  string
	WordSize  int // If the ROM accessed in 1 byte, 2 byte or more?
	Size      int // Chip size
	Offset    int // Offset from where to start reading/writing the ROM
	DstOffset int // Offset in memory RAM
	Skip      int // How much to skip after each read/write when converting from ROM to memory space
}

type ROMSet

type ROMSet struct {
	Size int64
	// TODO: Get rid of these function pointer, we should always use the same function
	//       but with board specific ROM descriptors.
	Epromer Rom2Eprom
	Roms    []ROM
}

type Rom2Eprom

type Rom2Eprom func([]byte, string)

Jump to

Keyboard shortcuts

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