Struct moa_m68k::assembler::M68kAssembler
source · pub struct M68kAssembler {
pub cputype: M68kType,
pub labels: HashMap<String, usize>,
pub output: Vec<u16>,
pub relocations: Vec<Relocation>,
pub current_origin: usize,
}
Fields§
§cputype: M68kType
§labels: HashMap<String, usize>
§output: Vec<u16>
§relocations: Vec<Relocation>
§current_origin: usize
Implementations§
source§impl M68kAssembler
impl M68kAssembler
pub fn new(cputype: M68kType) -> Self
pub fn assemble(&mut self, text: &str) -> Result<Vec<u8>, Error>
pub fn assemble_words(&mut self, text: &str) -> Result<Vec<u16>, Error>
pub fn assemble_in_place(&mut self, text: &str) -> Result<(), Error>
fn parse(&mut self, text: &str) -> Result<Vec<(usize, AssemblyLine)>, Error>
fn apply_relocations(&mut self) -> Result<(), Error>
fn convert(&mut self, lineno: usize, line: &AssemblyLine) -> Result<(), Error>
fn convert_instruction( &mut self, lineno: usize, mneumonic: &str, args: &[AssemblyOperand] ) -> Result<(), Error>
fn convert_sized_instruction( &mut self, lineno: usize, mneumonic: &str, args: &[AssemblyOperand] ) -> Result<(), Error>
fn convert_common_immediate_instruction( &mut self, lineno: usize, opcode: u16, args: &[AssemblyOperand], operation_size: Size, disallow: Disallow ) -> Result<(), Error>
fn convert_common_dreg_instruction( &mut self, lineno: usize, opcode: u16, args: &[AssemblyOperand], operation_size: Size, disallow: Disallow ) -> Result<(), Error>
fn convert_common_areg_instruction( &mut self, lineno: usize, opcode: u16, args: &[AssemblyOperand], operation_size: Size, disallow: Disallow ) -> Result<(), Error>
fn convert_common_single_operand_instruction( &mut self, lineno: usize, opcode: u16, args: &[AssemblyOperand], operation_size: Size, disallow: Disallow ) -> Result<(), Error>
fn check_convert_flags_instruction( &mut self, lineno: usize, opcode_ccr: u16, opcode_sr: u16, args: &[AssemblyOperand] ) -> Result<bool, Error>
fn convert_common_shift_instruction( &mut self, lineno: usize, mneumonic: &str, opcode: u16, args: &[AssemblyOperand], operation_size: Size ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for M68kAssembler
impl RefUnwindSafe for M68kAssembler
impl Send for M68kAssembler
impl Sync for M68kAssembler
impl Unpin for M68kAssembler
impl UnwindSafe for M68kAssembler
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
source§impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T