applies chatgpt suggestions.
... does not appear to decode everything
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
use core::instruction::Instruction;
|
||||
use core::address_mode::AddressMode;
|
||||
use core::isa::decoder::Decoder;
|
||||
|
||||
fn main() {
|
||||
println!("Taxation is Theft");
|
||||
|
||||
Decoder::decode(vec![0b11100011]);
|
||||
Instruction::from_bytes(vec![0b11100011]);
|
||||
|
||||
let instruction = Instruction::ADC(AddressMode::Immediate(0x45));
|
||||
println!("Instruction = {:?}", instruction.to_string());
|
||||
|
||||
Reference in New Issue
Block a user