pub struct Code0Header {
pub above_a5: u32,
pub below_a5: u32,
pub jump_table_size: u32,
pub jump_table_offset: u32,
}Expand description
CODE 0 resource header — 16 bytes parsed from the start of every
68k application’s CODE resource ID 0. Defines the A5-world layout
(above + below sizes) and where the jump table lives within it.
Inside Macintosh: Memory 1992, 7-31 (“CODE Resource Format”).
Fields§
§above_a5: u32Bytes of A5-world space above A5 (application globals, not counting the jump table itself).
below_a5: u32Bytes of A5-world space below A5 (parameter area + initial SP).
jump_table_size: u32Total size in bytes of the jump table region (8 bytes per entry).
jump_table_offset: u32Byte offset from A5 to the jump table base (typically 32).
Implementations§
Source§impl Code0Header
impl Code0Header
Trait Implementations§
Source§impl Clone for Code0Header
impl Clone for Code0Header
Source§fn clone(&self) -> Code0Header
fn clone(&self) -> Code0Header
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Code0Header
impl Debug for Code0Header
Source§impl Default for Code0Header
impl Default for Code0Header
Source§fn default() -> Code0Header
fn default() -> Code0Header
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Code0Header
impl RefUnwindSafe for Code0Header
impl Send for Code0Header
impl Sync for Code0Header
impl Unpin for Code0Header
impl UnsafeUnpin for Code0Header
impl UnwindSafe for Code0Header
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