Expand description
The SuperGrafx: the base PC Engine board with a machine row, a VPC and a second VDC
(board.py).
Nothing here is copied from pcengine-rust; this module only composes it through its sockets (the reference’s docs/start-here.md lists them):
- socket 12 (instances) and the machine row:
Machine::vdc_count = 2makes the board build, run, sync and read a secondVdcand OR its IRQ1; - socket 3 (the decode):
VideoPageclaims$FF:0000-03FFover the VDC page; - socket 7 (pixel path):
VideoPage::mix(theVpc’s) is the board’sPixelPath; - the work RAM is the machine row’s 32 KiB, mirrored nowhere (banks
$F8-$FB).
Differences forced by Rust:
- The board owns the VPC and the CPU owns the board, so
SuperGrafxcannot keepvpc,vdc1,vdc2andpagebeside the board as the reference does. They are reached through the board:board.vdcs[0],board.vdcs[1], andvideo_page(&mut board)for the page and itsvpc(the base board’sPixelPath::as_any_mut).buildconsumes theSuperGrafxand gives theSystem; afterwards the same things are reached withsystem.board_mut(). - The constructor’s keyword arguments are
SuperGrafxOptions:compat,vpcand the base board’sBoardOptions(the reference’s**board_kwargs), whosemachineandpixel_pathare the add-on’s to set. _store_immediateis not here: the base board hands the opcode to the page with each access (vpc.rs).resetisBoard::reset, which calls the page’s (vpc.rs).
Structs§
- Super
Grafx - A base board configured as a SuperGrafx.
boardis the plainpcengine_rust::board::Board. - Super
Grafx Options - The reference’s
SuperGrafx(card, compat=..., vpc=..., **board_kwargs).
Functions§
- set_
compat - Move the back-panel switch of a running SuperGrafx (
true: PC Engine position).falseif the system is not a SuperGrafx. - video_
page - The video page of a board built by
SuperGrafx(Nonefor any other board): afterbuild,video_page(system.board_mut()).