diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-02-27 22:00:11 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-02-27 22:00:11 +0100 |
commit | fed6ae454f659f4d2b36520474d1998b526a27dd (patch) | |
tree | 562da1123e520af33a1cce63d71e57e27c8c5036 /src/insn.rs | |
parent | ab5711a77e2a6872ca1392c1dbc2f545f7d3ab3b (diff) | |
download | juicebox-asm-fed6ae454f659f4d2b36520474d1998b526a27dd.tar.gz juicebox-asm-fed6ae454f659f4d2b36520474d1998b526a27dd.zip |
Add JMP, JZ, and Label
Diffstat (limited to 'src/insn.rs')
-rw-r--r-- | src/insn.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/insn.rs b/src/insn.rs index 2bfaf18..be2e689 100644 --- a/src/insn.rs +++ b/src/insn.rs @@ -1,5 +1,7 @@ mod add; mod dec; +mod jmp; +mod jz; mod mov; mod ret; mod test; @@ -12,6 +14,14 @@ pub trait Dec<T> { fn dec(&mut self, op1: T); } +pub trait Jmp<T> { + fn jmp(&mut self, op1: T); +} + +pub trait Jz<T> { + fn jz(&mut self, op1: T); +} + pub trait Mov<T, U> { fn mov(&mut self, op1: T, op2: U); } |