wram

package
v0.0.0-...-88ca599 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WRamStart is the WRAM Memory Start Addr
	WRamStart uint16 = 0xC000
	// WRamEnd is the WRAM Memory End Addr
	WRamEnd uint16 = 0xDFFF

	// MirrorWramStart is the Mirror of C000~DDFF Start Addr
	MirrorWramStart uint16 = 0xE000
	// MirrorWramEnd is the Mirror of C000~DDFF Start Addr
	MirrorWramEnd uint16 = 0xFDFF
)

To bind to MMU

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslatedWram

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

func NewTranlatedWram

func NewTranlatedWram(ram *WRam) *TranslatedWram

func (*TranslatedWram) Read

func (m *TranslatedWram) Read(addr uint16) uint8

func (*TranslatedWram) Write

func (m *TranslatedWram) Write(addr uint16, value uint8)

type WRam

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

WRam is the internal Working RAM of the Gameboy

func NewWram

func NewWram(io *ioports.IOPorts) *WRam

NewWram create new WRam instance

ioports is required to read current wram bank (FF70)

func (*WRam) Read

func (io *WRam) Read(addr uint16) uint8

func (*WRam) Write

func (io *WRam) Write(addr uint16, value uint8)

Jump to

Keyboard shortcuts

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