ioports

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddrStart is the first address of IOPorts
	AddrStart uint16 = 0xFF00
	// AddrEnd is the last address of IOPorts
	AddrEnd uint16 = 0xFF7F
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BitPtr

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

func (*BitPtr) Get

func (ptr *BitPtr) Get() bool

func (*BitPtr) Set

func (ptr *BitPtr) Set(set bool)

type IOPorts

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

IOPorts emulate Gameboy Color IO ports

func NewGBIOPorts

func NewGBIOPorts() *IOPorts

NewGBIOPorts create new IOPorts, basicaly a simple Memory implementation.

func (*IOPorts) NewBit0Ptr

func (io *IOPorts) NewBit0Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit1Ptr

func (io *IOPorts) NewBit1Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit2Ptr

func (io *IOPorts) NewBit2Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit3Ptr

func (io *IOPorts) NewBit3Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit4Ptr

func (io *IOPorts) NewBit4Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit5Ptr

func (io *IOPorts) NewBit5Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit6Ptr

func (io *IOPorts) NewBit6Ptr(addr uint16) *BitPtr

func (*IOPorts) NewBit7Ptr

func (io *IOPorts) NewBit7Ptr(addr uint16) *BitPtr

func (*IOPorts) NewMaskedPtr

func (io *IOPorts) NewMaskedPtr(addr uint16, mask uint8) *MaskedPtr

func (*IOPorts) NewPtr

func (io *IOPorts) NewPtr(addr uint16) *Ptr

func (*IOPorts) Read

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

func (*IOPorts) Write

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

type MaskedPtr

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

func (*MaskedPtr) Get

func (mptr *MaskedPtr) Get() uint8

func (*MaskedPtr) Set

func (mptr *MaskedPtr) Set(value uint8)

type Ptr

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

func (*Ptr) Get

func (ptr *Ptr) Get() uint8

func (*Ptr) GetBit0

func (ptr *Ptr) GetBit0() bool

func (*Ptr) GetBit1

func (ptr *Ptr) GetBit1() bool

func (*Ptr) GetBit2

func (ptr *Ptr) GetBit2() bool

func (*Ptr) GetBit3

func (ptr *Ptr) GetBit3() bool

func (*Ptr) GetBit4

func (ptr *Ptr) GetBit4() bool

func (*Ptr) GetBit5

func (ptr *Ptr) GetBit5() bool

func (*Ptr) GetBit6

func (ptr *Ptr) GetBit6() bool

func (*Ptr) GetBit7

func (ptr *Ptr) GetBit7() bool

func (*Ptr) Set

func (ptr *Ptr) Set(value uint8)

func (*Ptr) SetBit0

func (ptr *Ptr) SetBit0(set bool)

func (*Ptr) SetBit1

func (ptr *Ptr) SetBit1(set bool)

func (*Ptr) SetBit2

func (ptr *Ptr) SetBit2(set bool)

func (*Ptr) SetBit3

func (ptr *Ptr) SetBit3(set bool)

func (*Ptr) SetBit4

func (ptr *Ptr) SetBit4(set bool)

func (*Ptr) SetBit5

func (ptr *Ptr) SetBit5(set bool)

func (*Ptr) SetBit6

func (ptr *Ptr) SetBit6(set bool)

func (*Ptr) SetBit7

func (ptr *Ptr) SetBit7(set bool)

Jump to

Keyboard shortcuts

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