bus

package
Version: v0.0.0-...-7cd2a6a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

Bus transmit data between cpu and other components in the NES console

func NewBus

func NewBus(cpu *mg6502.MG6502) (bus *Bus)

NewBus create and return a new bus reference

func (*Bus) Clock

func (bus *Bus) Clock()

Clock ticks the whole system

func (*Bus) CpuRead

func (bus *Bus) CpuRead(addr uint16, readonly bool) (data uint8)

CpuRead data from the bus

func (*Bus) CpuWrite

func (bus *Bus) CpuWrite(addr uint16, data uint8)

CpuWrite writes data to the bus

func (*Bus) InsertCartridge

func (bus *Bus) InsertCartridge(cart *cartridge.Cartridge)

InsertCartridge attach a cartridge to the bus

func (*Bus) Reset

func (bus *Bus) Reset()

Reset sends a reset signal to all components attached to this bus

Source Files

Jump to

Keyboard shortcuts

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