Enum lc3_ensemble::ast::asm::Directive
source · pub enum Directive {
Orig(Offset<u16, 16>),
Fill(PCOffset<u16, 16>),
Blkw(Offset<u16, 16>),
Stringz(String),
End,
}Expand description
An enum representing all the possible directives in LC-3 assembly code.
Variants§
Orig(Offset<u16, 16>)
Fill(PCOffset<u16, 16>)
A .fill directive.
§Operation
Writes some data into the given memory location.
§Syntax
.fill DATA
.fill LABEL
Blkw(Offset<u16, 16>)
A .blkw directive.
§Operation
Saves a provided number of memory locations for writing into.
§Syntax
.blkw N
Stringz(String)
A .stringz directive.
§Operation
Writes a null-terminated string into the provided location.
§Syntax
.stringz "A literal"
End
Trait Implementations§
source§impl PartialEq for Directive
impl PartialEq for Directive
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