aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 23:00:09 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 23:00:09 +0100
commitf4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4 (patch)
treef250376867477ac309d9fed4333224efe2d3969d /src/insn
parent647e3646c2f686ce236059b935336c43c8a9a074 (diff)
downloadjuicebox-asm-f4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4.tar.gz
juicebox-asm-f4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4.zip
remove prelude
Diffstat (limited to 'src/insn')
-rw-r--r--src/insn/add.rs3
-rw-r--r--src/insn/call.rs3
-rw-r--r--src/insn/cmp.rs3
-rw-r--r--src/insn/dec.rs3
-rw-r--r--src/insn/jmp.rs3
-rw-r--r--src/insn/jnz.rs3
-rw-r--r--src/insn/jz.rs3
-rw-r--r--src/insn/mov.rs3
-rw-r--r--src/insn/test.rs3
9 files changed, 18 insertions, 9 deletions
diff --git a/src/insn/add.rs b/src/insn/add.rs
index 8232fe4..0a6772a 100644
--- a/src/insn/add.rs
+++ b/src/insn/add.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Add;
+use crate::{Asm, Imm16, MemOp, Reg16, Reg32, Reg64};
impl Add<Reg64, Reg64> for Asm {
fn add(&mut self, op1: Reg64, op2: Reg64) {
diff --git a/src/insn/call.rs b/src/insn/call.rs
index 8a71db8..f089512 100644
--- a/src/insn/call.rs
+++ b/src/insn/call.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Call;
+use crate::{Asm, Reg64};
impl Call<Reg64> for Asm {
fn call(&mut self, op1: Reg64) {
diff --git a/src/insn/cmp.rs b/src/insn/cmp.rs
index 93aa26c..835202c 100644
--- a/src/insn/cmp.rs
+++ b/src/insn/cmp.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Cmp;
+use crate::{Asm, Imm16, MemOp};
impl Cmp<MemOp, Imm16> for Asm {
fn cmp(&mut self, op1: MemOp, op2: Imm16) {
diff --git a/src/insn/dec.rs b/src/insn/dec.rs
index c5803e7..1377d1c 100644
--- a/src/insn/dec.rs
+++ b/src/insn/dec.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Dec;
+use crate::{Asm, Reg32, Reg64};
impl Dec<Reg64> for Asm {
fn dec(&mut self, op1: Reg64) {
diff --git a/src/insn/jmp.rs b/src/insn/jmp.rs
index 71d1dbc..0539318 100644
--- a/src/insn/jmp.rs
+++ b/src/insn/jmp.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Jmp;
+use crate::{Asm, Label};
impl Jmp<&mut Label> for Asm {
fn jmp(&mut self, op1: &mut Label) {
diff --git a/src/insn/jnz.rs b/src/insn/jnz.rs
index 6517bd7..739d013 100644
--- a/src/insn/jnz.rs
+++ b/src/insn/jnz.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Jnz;
+use crate::{Asm, Label};
impl Jnz<&mut Label> for Asm {
fn jnz(&mut self, op1: &mut Label) {
diff --git a/src/insn/jz.rs b/src/insn/jz.rs
index 6563ca2..c591b1d 100644
--- a/src/insn/jz.rs
+++ b/src/insn/jz.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Jz;
+use crate::{Asm, Label};
impl Jz<&mut Label> for Asm {
fn jz(&mut self, op1: &mut Label) {
diff --git a/src/insn/mov.rs b/src/insn/mov.rs
index 2614d82..2f61e07 100644
--- a/src/insn/mov.rs
+++ b/src/insn/mov.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Mov;
+use crate::{Asm, Imm16, Imm32, Imm64, Imm8, MemOp, Reg16, Reg32, Reg64, Reg8};
// -- MOV : reg reg
diff --git a/src/insn/test.rs b/src/insn/test.rs
index b7ac774..e90d855 100644
--- a/src/insn/test.rs
+++ b/src/insn/test.rs
@@ -1,4 +1,5 @@
-use crate::prelude::*;
+use super::Test;
+use crate::{Asm, Imm16, MemOp, Reg32, Reg64};
impl Test<Reg64, Reg64> for Asm {
fn test(&mut self, op1: Reg64, op2: Reg64) {