aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 23:07:45 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 23:07:45 +0100
commitfc897ef4d6aca746f61ef7b0b2f815e96ae62380 (patch)
treed931a1a51e70f1f4d26bb0e09069a8a89526c917 /src/insn
parentf4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4 (diff)
downloadjuicebox-asm-fc897ef4d6aca746f61ef7b0b2f815e96ae62380.tar.gz
juicebox-asm-fc897ef4d6aca746f61ef7b0b2f815e96ae62380.zip
insn: update doc
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]);
}