pub struct VideoPage {
pub vpc: Vpc,
pub compat: bool,
pub st_steers_in_compat: bool,
}Expand description
The video chip area, $FF:0000-03FF (four 256-byte pages): what the VPC decodes.
Native mode [hw: sgxtech, “HuC6280 memory map”], a 32-byte block repeated through the 1 KiB:
$00-$03 VDC 1 $04-$07 VDC 1 (mirror) $08-$0F VPC $10-$13 VDC 2
$14-$17 VDC 2 (mirror) $18-$1F unused, reads $FFPC Engine compatibility mode (the switch on the back): VDC 1 alone, mirrored every 4 bytes, as
on a PC Engine, for games that use those mirrors. Whether the CPU’s current write is an
ST0/ST1/ST2 is pins.opcode (the VPC sees the instruction, not the address).
This is the board’s PixelPath: the mix is vpc’s.
Fields§
§vpc: Vpc§compat: boolThe back-panel switch: true is the PC Engine position.
st_steers_in_compat: boolU-SGX4: whether ST0-ST2 still follow $0E bit 0 with the switch in compatibility mode.
$0E cannot be written in that mode (it is a VDC 1 mirror), so the bit is only ever left
over from native mode; nothing documents it. Default: no steering in compatibility mode.
Implementations§
Trait Implementations§
Source§impl DeviceState for VideoPage
impl DeviceState for VideoPage
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Source§fn state_identity(&self) -> String
fn state_identity(&self) -> String
Source§impl PixelPath for VideoPage
impl PixelPath for VideoPage
Source§fn claims(&self) -> Vec<(usize, usize)>
fn claims(&self) -> Vec<(usize, usize)>
The VPC decodes the whole 1 KiB video chip area: four pages of the hardware page.
Source§fn reset(&mut self, kind: ResetKind, _pins: &mut BoardPins<'_>)
fn reset(&mut self, kind: ResetKind, _pins: &mut BoardPins<'_>)
The reference’s SuperGrafx.reset, after the board’s own: a power-on resets the VPC.