From fc897ef4d6aca746f61ef7b0b2f815e96ae62380 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 7 Dec 2023 23:07:45 +0100 Subject: insn: update doc --- src/insn/nop.rs | 1 + src/insn/ret.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src/insn') 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]); } -- cgit v1.2.3