Expand description
The HuC6270 VDC (vdc/): instances, no module state.
It uses only machine constants from the rest of the board, so it can move to a core of its
own if PC-FX or a second consumer needs it: broken out, never copied.
Differences forced by Rust: the reference’s Vdc, Sequencer and DmaEngine are three
objects that call each other through references. Here Sequencer and DmaEngine are the
state of each (fields of Vdc: seq, dma) and their methods are impl Vdc blocks in
sequencer.rs and dma.rs, with the reference’s names behind a seq_ or dma_ prefix.
Re-exports§
pub use chip::Vdc;pub use chip::VRAM_WORDS;pub use regs::VdcRegisters;pub use sequencer::VPhase;
Modules§
- background
- The background layer: one line of 9-bit pixels from the BAT and the character generator
(
vdc/background.py). - chip
- The HuC6270 VDC as the CPU sees it: the bus port, VRAM access, status, IRQ1 (
vdc/chip.py). - dma
- The VDC’s two DMAs and burst mode: VRAM -> VRAM, and VRAM -> sprite attribute table
(
vdc/dma.py). - regs
- The HuC6270’s register file and the fields the timing generator reads (
vdc/regs.py). - sequencer
- The VDC’s vertical state machine and the horizontal events of one line (
vdc/sequencer.py). - sprites
- Sprites: the line scan of the sprite attribute table, and the drawing of the line’s sprites
(
vdc/sprites.py).