ft(interpreter): expose data to memory
This commit is contained in:
@@ -539,6 +539,16 @@ pub struct MemoryIndex {
|
||||
pub displacement: Option<ImmediateOperand>,
|
||||
}
|
||||
|
||||
impl Into<MemoryIndex> for u16 {
|
||||
fn into(self) -> MemoryIndex {
|
||||
MemoryIndex {
|
||||
base: None,
|
||||
index: None,
|
||||
displacement: Some(self.into()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for MemoryIndex {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match &self.base {
|
||||
|
||||
Reference in New Issue
Block a user