bios

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const OriginBIOS = 0x8000

the addressing origin for the BIOS. the bios rom data will not be placed here unless the BIOS is 32k in length

the reason for this origin is given in the "7800 Software Guide" in the section detailing the INPTCTRL register and the EXT bit in particular:

"EXT: 0 = enable BIOS at $8000-$FFFF, 1 = disable BIOS / enable cartridge"

Variables

View Source
var Supported map[string]Info = map[string]Info{
	"PAL": {Name: "PAL", MD5: "0x397bb566584be7b9764e7a68974c4263"},
	"NTSC": {Name: "NTSC", MD5: "0x0763f1ffb006ddbe32e52d497ee848ae",
		ChecksSignature: true, SignatureFail: 0x26c2, SignaturePass: 0x23f9},
}

list of supported BIOS along with MD5 and whether the BIOS cares about ROM signing

Functions

This section is empty.

Types

type BIOS

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

func NewNTSC

func NewNTSC() BIOS

func NewPAL

func NewPAL() BIOS

func (*BIOS) Access

func (b *BIOS) Access(write bool, address uint16, data uint8) (uint8, error)

func (*BIOS) Label

func (b *BIOS) Label() string

func (*BIOS) MD5 added in v0.6.1

func (b *BIOS) MD5() string

return MD5 sum of BIOS

func (*BIOS) Status

func (b *BIOS) Status() string

func (*BIOS) String added in v0.4.3

func (b *BIOS) String() string

type Info added in v0.7.3

type Info struct {
	Name string
	MD5  string

	// whether the BIOS is known to check ROM signatures
	ChecksSignature bool

	// these two addresses are the insturction locations for the fail and pass conditions of the
	// signature check
	SignatureFail uint16
	SignaturePass uint16
}

Jump to

Keyboard shortcuts

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