Module dm6502.utils

Some utilities used by the emulator system.

Functions

NameDescription
baudrateToDelay(Baudrate) Calculates the required delay in nanoseconds for the given baudrate.
crossesPage(Address) Checks if the given address will cross a page.
fromBCD(Number) Converts a BCD encoded byte into a normal byte.
hertzToDelay(Hertz) Calculates the required delay in nanoseconds for the given frequency.
toBCD(Number) Converts a number to a BCD encoded byte.