pub enum Directive {
Align(usize),
Globl(Label),
Section(SectionType),
Type(Label, SymbolType),
Byte(u8),
Half(u16),
Word(u32),
Quad(u64),
Zero(usize),
}
Expand description
The assembler implements several directives that control the assembly of instructions into an object file.
For more information: https://github.com/michaeljclark/michaeljclark.github.io/blob/master/asm.md#assembler-directives
Variants§
Align(usize)
.align integer
Globl(Label)
.globl symbol
Section(SectionType)
.section section_type
Type(Label, SymbolType)
.type symbol, symbol_type
Byte(u8)
.byte value
Half(u16)
.half value
Word(u32)
.word value
Quad(u64)
.quad value
Zero(usize)
.zero bytes
Implementations§
Trait Implementations§
impl Eq for Directive
impl StructuralPartialEq for Directive
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more