Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TimerRegisterOffset is register offset address TimerRegisterOffset types.Word = 0xFF00 // DIV - Divider Register (R/W) // This register is incremented 16384 (~16779 on SGB) times a second. // Writing any value sets it to $00. DIV = 0x04 // TIMA - Timer counter (R/W) // This timer is incremented by a clock frequency specified by the TAC register ($FF07). // The timer generates an interrupt when it overflows. TIMA = 0x05 // TMA - Timer Modulo (R/W) // When the TIMA overflows, this data will be loaded. TMA = 0x06 // TAC - Timer Control (R/W) // Bit 2 - Timer Stop // 0: Stop Timer // 1: Start Timer // Bits 1+0 - Input Clock Select // 00: 4.096 KHz (~4.194 KHz SGB) // 01: 262.144 Khz (~268.4 KHz SGB) // 10: 65.536 KHz (~67.11 KHz SGB) // 11: 16.384 KHz (~16.78 KHz SGB) TAC = 0x07 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.