pub enum PCOffset<OFF, const N: u32> {
Offset(Offset<OFF, N>),
Label(Label),
}
Expand description
An offset or a label.
This is used to represent PCOffset
operands
(such as the PCOffset9
operand in LD
and ST
and the PCOffset11
operand in JSR
).
During the first assembly pass, the label is resolved and
replaced with a regular Offset
value.
§Examples
LD R2, VALUE
~~~~~
BRz END
~~~
BR #-99
~~~~
JSR SUBROUTINE
~~~~~~~~~~
Variants§
Trait Implementations§
impl<OFF: Eq, const N: u32> Eq for PCOffset<OFF, N>
impl<OFF, const N: u32> StructuralPartialEq for PCOffset<OFF, N>
Auto Trait Implementations§
impl<OFF, const N: u32> Freeze for PCOffset<OFF, N>where
OFF: Freeze,
impl<OFF, const N: u32> RefUnwindSafe for PCOffset<OFF, N>where
OFF: RefUnwindSafe,
impl<OFF, const N: u32> Send for PCOffset<OFF, N>where
OFF: Send,
impl<OFF, const N: u32> Sync for PCOffset<OFF, N>where
OFF: Sync,
impl<OFF, const N: u32> Unpin for PCOffset<OFF, N>where
OFF: Unpin,
impl<OFF, const N: u32> UnwindSafe for PCOffset<OFF, N>where
OFF: UnwindSafe,
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