pub struct LoadedApp {
pub code0_header: Code0Header,
pub a5_base: u32,
pub jump_table: Vec<JumpTableEntry>,
pub segment_bases: HashMap<i16, u32>,
pub initial_sp: u32,
}Expand description
State produced by loading a 68k application: parsed CODE 0 header, resolved A5 placement, jump-table slot vector, per-segment load addresses, and the initial stack pointer the runner will seed.
Returned by
FixtureRunner::load_app
and consumed by
FixtureRunner::init_app.
Fields§
§code0_header: Code0HeaderParsed CODE 0 header bytes (above_a5 / below_a5 / jt_size / jt_offset).
a5_base: u32Guest address chosen for A5; A5-relative globals + jump table are placed relative to this base.
jump_table: Vec<JumpTableEntry>Materialised jump-table slot vector; one entry per CODE call site.
segment_bases: HashMap<i16, u32>Map from CODE resource ID to the guest address where each segment was loaded.
initial_sp: u32Initial stack pointer (top of below-A5 region) the runner seeds A7 with before the first instruction.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadedApp
impl RefUnwindSafe for LoadedApp
impl Send for LoadedApp
impl Sync for LoadedApp
impl Unpin for LoadedApp
impl UnsafeUnpin for LoadedApp
impl UnwindSafe for LoadedApp
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