Documentation ¶
Index ¶
- type BgCharDataArea
- type BgCodeArea
- type LCDCFlags
- func (f LCDCFlags) GetBgCharArea() BgCharDataArea
- func (f LCDCFlags) GetBgCodeArea() BgCodeArea
- func (f LCDCFlags) GetWindowCodeArea() WindowCodeArea
- func (f LCDCFlags) IsBgDisplay() bool
- func (f LCDCFlags) IsDoubleObjTiles() bool
- func (f LCDCFlags) IsLCDEnabled() bool
- func (f LCDCFlags) IsObjFlag() bool
- func (f LCDCFlags) IsWindowingFlagSet() bool
- func (f *LCDCFlags) Read() byte
- func (f *LCDCFlags) Write(value byte)
- type LcdInterruptSelector
- type LcdcMode
- type StatFlags
- type WindowCodeArea
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BgCharDataArea ¶
type BgCharDataArea byte
const ( BgCharArea1 BgCharDataArea = 1 // 0x8800-0x97FF BgCharArea2 BgCharDataArea = 2 // 0x8000-0x8FFF )
func (BgCharDataArea) Address ¶
func (a BgCharDataArea) Address(id byte) uint16
type BgCodeArea ¶
type BgCodeArea byte
const ( BgCodeArea1 BgCodeArea = 1 //0x9800-0x9BFF BgCodeArea2 BgCodeArea = 2 //0x9C00-0x9FFF )
func (BgCodeArea) StartAddress ¶
func (a BgCodeArea) StartAddress() uint16
type LCDCFlags ¶
type LCDCFlags struct {
// contains filtered or unexported fields
}
func (LCDCFlags) GetBgCharArea ¶
func (f LCDCFlags) GetBgCharArea() BgCharDataArea
func (LCDCFlags) GetBgCodeArea ¶
func (f LCDCFlags) GetBgCodeArea() BgCodeArea
func (LCDCFlags) GetWindowCodeArea ¶
func (f LCDCFlags) GetWindowCodeArea() WindowCodeArea
func (LCDCFlags) IsBgDisplay ¶
Bits: 0: Bg display off (0) or on (1). Always on for CGB 1: OBJ flag off (0) or on (1) 2: Obj composition 8x8 (0) or 8x16 (1) 3: BG code area selection 0x9800-0x9BFF (0) or 0x9C00-0x9FFF (1) 4: BG char data selection 0x8800-0x97FF (0) or 0x8000-0x8FFF (1) 5: Windowing flag off (0) or on (1) 6: Window code area 0x9800-0x9BFF (0) or 0x9C00-0x9FFF (1) 7: LCD controller op stop flag off (0) or on (1)
func (LCDCFlags) IsDoubleObjTiles ¶
func (LCDCFlags) IsLCDEnabled ¶
func (LCDCFlags) IsWindowingFlagSet ¶
type LcdInterruptSelector ¶
type LcdInterruptSelector byte
const ( Mode00 LcdInterruptSelector = 3 Mode01 LcdInterruptSelector = 4 Mode10 LcdInterruptSelector = 5 LycMatch LcdInterruptSelector = 6 )
type StatFlags ¶
type StatFlags struct {
// contains filtered or unexported fields
}
func (*StatFlags) IsInterruptEnabled ¶
func (f *StatFlags) IsInterruptEnabled(selector LcdInterruptSelector) bool
type WindowCodeArea ¶
type WindowCodeArea byte
const ( WindowCodeArea1 WindowCodeArea = 1 //0x9800-0x9BFF WindowCodeArea2 WindowCodeArea = 2 //0x9C00-0x9FFF )
Click to show internal directories.
Click to hide internal directories.