pub enum Directive {
Orig(Offset<u16, 16>),
Fill(PCOffset<u16, 16>),
Blkw(Offset<u16, 16>),
Stringz(String),
End,
External(Label),
}
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
External(Label)
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