diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/insn.rs | 1 | ||||
-rw-r--r-- | src/insn/nop.rs | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/insn.rs b/src/insn.rs index db62e6c..2a6ca42 100644 --- a/src/insn.rs +++ b/src/insn.rs @@ -6,6 +6,7 @@ mod jmp; mod jnz; mod jz; mod mov; +mod nop; mod ret; mod test; diff --git a/src/insn/nop.rs b/src/insn/nop.rs new file mode 100644 index 0000000..82057db --- /dev/null +++ b/src/insn/nop.rs @@ -0,0 +1,7 @@ +use crate::Asm; + +impl Asm { + pub fn nop(&mut self) { + self.emit(&[0x90]); + } +} |