Merge both packages

This commit is contained in:
Michel Heily 2019-06-24 22:02:00 +03:00
parent 094cbb5f29
commit addea1efa0
7 changed files with 17 additions and 28 deletions

View file

@ -4,9 +4,13 @@ version = "0.1.0"
authors = ["Michel Heily <michelheily@gmail.com>"] authors = ["Michel Heily <michelheily@gmail.com>"]
edition = "2018" edition = "2018"
[workspace]
members = [".", "arm7tdmi"]
[dependencies] [dependencies]
byteorder = "*" byteorder = "*"
arm7tdmi = {path = "arm7tdmi"} enum-primitive-derive = "^0.1"
num-traits = "^0.1"
bit = "^0.1"
clap = {version = "2.33", features = ["color", "yaml"]}
[[bin]]
name = "disass"
path = "src/disass.rs"

View file

@ -1,15 +0,0 @@
[package]
name = "arm7tdmi"
version = "0.1.0"
authors = ["Michel Heily <michelheily@gmail.com>"]
edition = "2018"
[dependencies]
byteorder = "*"
enum-primitive-derive = "^0.1"
num-traits = "^0.1"
bit = "^0.1"
[[bin]]
name = "disass"
path = "src/disass.rs"

View file

@ -1,10 +1,5 @@
#[macro_use]
extern crate enum_primitive_derive;
extern crate num_traits;
extern crate bit;
pub mod arm; pub mod arm;
pub use arm::arm_isa::ArmInstruction;
pub const REG_PC: usize = 15; pub const REG_PC: usize = 15;

View file

@ -5,12 +5,17 @@ use std::io::prelude::*;
use std::fs::File; use std::fs::File;
use std::convert::TryFrom; use std::convert::TryFrom;
#[macro_use]
extern crate enum_primitive_derive;
extern crate num_traits;
extern crate bit;
extern crate byteorder; extern crate byteorder;
use byteorder::{LittleEndian, ReadBytesExt}; use byteorder::{LittleEndian, ReadBytesExt};
extern crate arm7tdmi; mod arm7tdmi;
use arm7tdmi::ArmInstruction;
use arm7tdmi::arm::arm_isa::ArmInstruction;
#[derive(Debug)] #[derive(Debug)]
pub enum DisassemblerError { pub enum DisassemblerError {