From 8316b628bbc9945fd1d08305317cf49a6482801f Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 5 Mar 2023 22:20:48 +0100 Subject: Added CALL and call extern fn example --- src/insn/call.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/insn/call.rs (limited to 'src/insn') diff --git a/src/insn/call.rs b/src/insn/call.rs new file mode 100644 index 0000000..8a71db8 --- /dev/null +++ b/src/insn/call.rs @@ -0,0 +1,7 @@ +use crate::prelude::*; + +impl Call for Asm { + fn call(&mut self, op1: Reg64) { + self.encode_r(0xff, 0x2, op1); + } +} -- cgit v1.2.3