aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn
diff options
context:
space:
mode:
Diffstat (limited to 'src/insn')
-rw-r--r--src/insn/nop.rs1
-rw-r--r--src/insn/ret.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/insn/nop.rs b/src/insn/nop.rs
index 82057db..f239039 100644
--- a/src/insn/nop.rs
+++ b/src/insn/nop.rs
@@ -1,6 +1,7 @@
use crate::Asm;
impl Asm {
+ /// Emit a [`nop`](https://www.felixcloutier.com/x86/nop) instruction.
pub fn nop(&mut self) {
self.emit(&[0x90]);
}
diff --git a/src/insn/ret.rs b/src/insn/ret.rs
index 74086d8..c5af571 100644
--- a/src/insn/ret.rs
+++ b/src/insn/ret.rs
@@ -1,6 +1,7 @@
use crate::Asm;
impl Asm {
+ /// Emit a [`ret`](https://www.felixcloutier.com/x86/ret) instruction.
pub fn ret(&mut self) {
self.emit(&[0xc3]);
}