some decode. some encode. some to_string
This commit is contained in:
@@ -8,3 +8,4 @@ pretty_env_logger.workspace = true
|
||||
log.workspace = true
|
||||
clap.workspace = true
|
||||
trevors_utilities.workspace = true
|
||||
core = { path = "../core" }
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
use core::instruction::Instruction;
|
||||
use core::address_mode::AddressMode;
|
||||
use core::isa::decoder::Decoder;
|
||||
|
||||
fn main() {
|
||||
println!("Taxation is Theft");
|
||||
|
||||
Decoder::decode(vec![0b11100011]);
|
||||
|
||||
let instruction = Instruction::ADC(AddressMode::Immediate(0x45));
|
||||
println!("Instruction = {:?}", instruction.to_string());
|
||||
}
|
||||
@@ -2,4 +2,4 @@ fn main() {
|
||||
println!("Taxation is theft.");
|
||||
println!("TODO:");
|
||||
println!(" Load specified binary and parse it out to ASM");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user