aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-03-05 22:20:48 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-03-05 22:20:48 +0100
commit8316b628bbc9945fd1d08305317cf49a6482801f (patch)
treeffc730d9ad9a131a2dbe54d41a4ab026e06f1ff3 /src/insn
parent005fca316085c3a2ce3e43b92531f006a15fbdd2 (diff)
downloadjuicebox-asm-8316b628bbc9945fd1d08305317cf49a6482801f.tar.gz
juicebox-asm-8316b628bbc9945fd1d08305317cf49a6482801f.zip
Added CALL and call extern fn example
Diffstat (limited to 'src/insn')
-rw-r--r--src/insn/call.rs7
1 files changed, 7 insertions, 0 deletions
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<Reg64> for Asm {
+ fn call(&mut self, op1: Reg64) {
+ self.encode_r(0xff, 0x2, op1);
+ }
+}