Struct eikon3ds_core::cpu::registers::Registers
source · pub struct Registers {Show 33 fields
skip_bios: bool,
registers: Box<[u32]>,
r8: u32,
r8_fiq: u32,
r9: u32,
r9_fiq: u32,
r10: u32,
r10_fiq: u32,
r11: u32,
r11_fiq: u32,
r12: u32,
r12_fiq: u32,
r13: u32,
r13_fiq: u32,
r13_svc: u32,
r13_abt: u32,
r13_irq: u32,
r13_und: u32,
r14: u32,
r14_fiq: u32,
r14_svc: u32,
r14_abt: u32,
r14_irq: u32,
r14_und: u32,
r15: u32,
cpsr: Cpsr,
spsr: u32,
spsr_fiq: u32,
spsr_svc: u32,
spsr_abt: u32,
spsr_irq: u32,
spsr_und: u32,
null_spsr: u32,
}Fields§
§skip_bios: bool§registers: Box<[u32]>§r8: u32§r8_fiq: u32§r9: u32§r9_fiq: u32§r10: u32§r10_fiq: u32§r11: u32§r11_fiq: u32§r12: u32§r12_fiq: u32§r13: u32§r13_fiq: u32§r13_svc: u32§r13_abt: u32§r13_irq: u32§r13_und: u32§r14: u32§r14_fiq: u32§r14_svc: u32§r14_abt: u32§r14_irq: u32§r14_und: u32§r15: u32§cpsr: Cpsr§spsr: u32§spsr_fiq: u32§spsr_svc: u32§spsr_abt: u32§spsr_irq: u32§spsr_und: u32§null_spsr: u32Implementations§
source§impl Registers
impl Registers
pub fn new(skip_bios: bool) -> Self
pub fn read_register(&self, reg_idx: usize) -> u32
pub fn write_register(&mut self, reg_idx: usize, val: u32)
pub fn spsr(&self) -> u32
pub fn set_spsr(&mut self, spsr: u32)
sourcefn does_spsr_exist(&self) -> bool
fn does_spsr_exist(&self) -> bool
Returns if an spsr exists in the current OperatingMode.
pub fn switch_operating_mode(&mut self, new_mode: OperatingMode)
pub fn get_sign_flag(&self) -> bool
pub fn set_sign_flag(&mut self, sign_flag_val: bool)
pub fn get_zero_flag(&self) -> bool
pub fn set_zero_flag(&mut self, zero_flag_val: bool)
pub fn get_carry_flag(&self) -> bool
pub fn set_carry_flag(&mut self, carry_flag_val: bool)
pub fn get_overflow_flag(&self) -> bool
pub fn set_overflow_flag(&mut self, overflow_flag_val: bool)
pub fn get_irq_disabled_flag(&self) -> bool
pub fn set_irq_disabled(&mut self, irq_disabled_val: bool)
pub fn get_fiq_disabled(&self) -> bool
pub fn set_fiq_disabled(&mut self, fiq_disabled_val: bool)
pub fn get_thumb_state(&self) -> bool
pub fn set_thumb_state(&mut self, thumb_state_val: bool)
pub fn get_opearting_mode(&self) -> OperatingMode
pub fn cpsr(&self) -> u32
pub fn set_cpsr(&mut self, cpsr: u32)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Registers
impl Send for Registers
impl Sync for Registers
impl Unpin for Registers
impl UnwindSafe for Registers
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