Module common

Source
Expand description

Common traits and constants.

Structs§

ParseNesRegionError

Enums§

NesRegion
ResetKind
Type of reset for types that have different behavior for reset vs power cycling.

Constants§

SAVE_DIR
Default directory for save states.
SRAM_DIR
Default directory for save RAM.

Traits§

Clock
Trait for types that can be clocked.
ClockTo
Trait for types that can clock to a target cycle.
Regional
Trait for types that have different behavior depending on NES region.
Reset
Trait for types that can can be reset.
Sample
Trait for types that can output f32 audio samples.
Sram
Trait for types that can save RAM to disk.

Functions§

hexdump
Prints a hex dump of a given byte array starting at addr_offset.