diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-02-27 21:00:26 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-02-27 21:00:26 +0100 |
commit | 957663f5d483b1abaa3f5af25e32c274218319d5 (patch) | |
tree | 8c52595b3307889094005c46bf46aa98b17384f5 /src/lib.rs | |
parent | 3e184b0b47d203cd37089296e0c49c9219c83b26 (diff) | |
download | juicebox-asm-957663f5d483b1abaa3f5af25e32c274218319d5.tar.gz juicebox-asm-957663f5d483b1abaa3f5af25e32c274218319d5.zip |
Move prelude to crate level and make public
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -1,3 +1,5 @@ +pub mod prelude; + mod imm; mod insn; mod reg; @@ -7,8 +9,6 @@ pub use imm::{Imm16, Imm32, Imm64, Imm8}; use reg::Reg; pub use reg::{Reg16, Reg32, Reg64, Reg8}; -use insn::Mov; - pub enum MemOp { Indirect(Reg64), IndirectDisp(Reg64, i32), @@ -69,13 +69,6 @@ impl Asm { } } - pub fn mov<T, U>(&mut self, op1: T, op2: U) - where - Self: Mov<T, U>, - { - <Self as Mov<T, U>>::mov(self, op1, op2); - } - fn encode_rr<T: Reg>(&mut self, opc: u8, op1: T, op2: T) where Self: EncodeRR<T>, |