Module system

Module system 

Source
Expand description

The machine as a whole: a board, a CPU on it, and frame-by-frame running (system.py).

The CPU is huc6280-rust’s HuC6280 with the board as its bus: one step() runs one instruction, one interrupt entry or one whole block transfer. The board prices every cycle inside its callbacks, so step()’s return value is never added to the clock.

Differences forced by Rust: the CPU owns the board (system.cpu.bus, also system.board()), where the reference’s System holds both side by side; System::new is the reference’s build (make_core, then Board.attach_cpu). A CPU with other switches is the same type with its public fields set (system.cpu.irq_poll_cycle = ...), not a subclass.

Structs§

System