Module cpu

Module cpu 

Source
Expand description

This module contains the CPU simulator.

Importantly, the simulator is built with the assumption that instructions are atomic; reading from a “dynamic” location (typically, a hardware register) will not read the correct value (the cycle count is unknown to the AddressSpace).

This is a design choice for simplicity and performance’s sake, and not a bug.

Structs§

Flags
The CPU’s flags register.
State
The CPU’s state, which is what gets ticked.

Enums§

TickResult
A tick’s possible results.