Documentation ¶
Index ¶
Constants ¶
View Source
const ( FLAG_ADDRESS uint16 = 0xFF0F ENABLE_ADDRESS uint16 = 0xFFFF )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Interrupt ¶
type Interrupt struct { // (IME) MasterEnabled is used to disabled all interrupts on the IE register MasterEnabled bool // EI: sets master to be enabled (delayed one instruction) EI InterruptMasterChange // DI: sets master to be disabled (delayed one instruction) DI InterruptMasterChange // (IF - $FFOF) flag identifies if a specific interrupt bit becomes set Flag byte // (IE - $FFFF) enable specifies if a specific interrupt bit is enabled Enable byte }
type InterruptMasterChange ¶
type InterruptMasterChange byte
const ( MASTER_SET_NONE InterruptMasterChange = 0 MASTER_SET_NOW InterruptMasterChange = 1 MASTER_SET_NEXT InterruptMasterChange = 2 )
Click to show internal directories.
Click to hide internal directories.