console

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus struct {
	RAM    [2048]uint8
	CPU    *cpupkg.CPU
	PPU    *ppupkg.PPU
	APU    *apupkg.APU
	Cart   ines.Cartridge
	Joy1   *input.Joystick
	Joy2   *input.Joystick
	Zapper *input.Zapper

	DisasmWriter  io.StringWriter
	DisasmEnabled bool
	// contains filtered or unexported fields
}

func (*Bus) FrameComplete

func (b *Bus) FrameComplete() (v bool)

func (*Bus) InitDMA

func (b *Bus) InitDMA()

InitDMA initializes direct memory access callbacks. Should be called after all devices are connected to the bus.

func (*Bus) LoadState

func (b *Bus) LoadState(r *binario.Reader) error

func (*Bus) Read

func (b *Bus) Read(addr uint16) uint8

func (*Bus) Reset

func (b *Bus) Reset()

func (*Bus) SaveState

func (b *Bus) SaveState(w *binario.Writer) error

func (*Bus) ScanlineComplete

func (b *Bus) ScanlineComplete() (v bool)

func (*Bus) Tick

func (b *Bus) Tick()

func (*Bus) Write

func (b *Bus) Write(addr uint16, data uint8)

Jump to

Keyboard shortcuts

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