Documentation ¶
Index ¶
- Constants
- type BitPtr
- type IOPorts
- func (io *IOPorts) NewBit0Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit1Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit2Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit3Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit4Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit5Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit6Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewBit7Ptr(addr uint16) *BitPtr
- func (io *IOPorts) NewMaskedPtr(addr uint16, mask uint8) *MaskedPtr
- func (io *IOPorts) NewPtr(addr uint16) *Ptr
- func (io *IOPorts) Read(addr uint16) uint8
- func (io *IOPorts) Write(addr uint16, value uint8)
- type MaskedPtr
- type Ptr
- func (ptr *Ptr) Get() uint8
- func (ptr *Ptr) GetBit0() bool
- func (ptr *Ptr) GetBit1() bool
- func (ptr *Ptr) GetBit2() bool
- func (ptr *Ptr) GetBit3() bool
- func (ptr *Ptr) GetBit4() bool
- func (ptr *Ptr) GetBit5() bool
- func (ptr *Ptr) GetBit6() bool
- func (ptr *Ptr) GetBit7() bool
- func (ptr *Ptr) Set(value uint8)
- func (ptr *Ptr) SetBit0(set bool)
- func (ptr *Ptr) SetBit1(set bool)
- func (ptr *Ptr) SetBit2(set bool)
- func (ptr *Ptr) SetBit3(set bool)
- func (ptr *Ptr) SetBit4(set bool)
- func (ptr *Ptr) SetBit5(set bool)
- func (ptr *Ptr) SetBit6(set bool)
- func (ptr *Ptr) SetBit7(set bool)
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 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 (*IOPorts) NewBit1Ptr ¶
func (*IOPorts) NewBit2Ptr ¶
func (*IOPorts) NewBit3Ptr ¶
func (*IOPorts) NewBit4Ptr ¶
func (*IOPorts) NewBit5Ptr ¶
func (*IOPorts) NewBit6Ptr ¶
func (*IOPorts) NewBit7Ptr ¶
Click to show internal directories.
Click to hide internal directories.