Documentation
¶
Index ¶
Constants ¶
View Source
const ( Herz ClockRate = 1 Kilohertz = 1000 * Herz Megahertz = 1000 * Kilohertz Gigahertz = 1000 * Megahertz )
View Source
const ( MasterClockRate = 236250 * Kilohertz / 11 CpuClockRate = MasterClockRate / 12 PpuClockRate = MasterClockRate / 4 )
The clock rate of components in the NES http://wiki.nesdev.com/w/index.php/Cycle_reference_chart#Clock_rates
View Source
const ( SCREEN_WIDTH = 256 SCREEN_HEIGHT = 240 )
View Source
const (
FPS = 60
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NesDiplay ¶
type NesDiplay struct {
NextCh chan int
StepInstruction bool
StepFrame bool
RequestReset bool
PressedKeys byte
ReleasedKeys byte
Keys byte
// contains filtered or unexported fields
}
func NewDisplay ¶
func NewDisplay(screenPixels *[SCREEN_HEIGHT][SCREEN_WIDTH]ppu.RBGColor) *NesDiplay
Click to show internal directories.
Click to hide internal directories.