pub struct Sf2Card {
pub data: Vec<u8>,
pub page_mask: usize,
pub page: usize,
/* private fields */
}Expand description
Street Fighter II’ Champion Edition (2.5 MiB) and the larger homebrew form.
The first 512 KiB answer banks $00-$3F; banks $40-$7F show one of the further 512 KiB pages,
chosen by a write to bank $00 at $1FF0-$1FFF (the page is the low bits of the address). MAME’s
pce_sf2 decodes $1FF0-$1FF3 and four pages; Mednafen decodes $1FF0-$1FFF and masks by the
page count: the same for the real card. [emu: both; no manufacturer document]
(docs/cartridge.md)
Fields§
§data: Vec<u8>§page_mask: usize§page: usizeImplementations§
Trait Implementations§
Source§impl Card for Sf2Card
impl Card for Sf2Card
Source§fn grounds_cd(&self) -> bool
fn grounds_cd(&self) -> bool
The /CD line: a card grounds it so a CD unit can tell one is inserted.
[doc: wiki HuCard pinout]
Source§fn claims(&self) -> Vec<(usize, usize)>
fn claims(&self) -> Vec<(usize, usize)>
Inclusive (first_page, last_page) ranges over the 8192 pages of 256 bytes.
fn reset(&mut self, _kind: ResetKind, _pins: &mut BoardPins<'_>)
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
For an add-on that knows which card it built (the CD unit and its System Card).
Source§impl DeviceState for Sf2Card
impl DeviceState for Sf2Card
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Put the device in a saved state. A device without state accepts only an empty one.
Source§fn state_identity(&self) -> String
fn state_identity(&self) -> String
What the device is and which media it holds (a card’s ROM by its SHA-1, a disc by its
table of contents): a state is refused by a system whose device answers otherwise.
Auto Trait Implementations§
impl Freeze for Sf2Card
impl RefUnwindSafe for Sf2Card
impl Send for Sf2Card
impl Sync for Sf2Card
impl Unpin for Sf2Card
impl UnwindSafe for Sf2Card
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more