aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn/ret.rs
blob: c5af571dd1c15890f33cca395f709029d9cf2d2f (plain) (blame)
1
2
3
4
5
6
7
8
use crate::Asm;

impl Asm {
    /// Emit a [`ret`](https://www.felixcloutier.com/x86/ret) instruction.
    pub fn ret(&mut self) {
        self.emit(&[0xc3]);
    }
}