adds docs
working on widetick
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use core::computers::ram_rom::backplane::RamRomComputer;
|
||||
use core::periph::backplane::Backplane;
|
||||
use core::traits::backplane::Backplane;
|
||||
use std::fs;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
use std::fs;
|
||||
use core::computers::ram_rom::RamRomComputer;
|
||||
use core::periph::backplane::Backplane;
|
||||
use core::traits::backplane::Backplane;
|
||||
|
||||
|
||||
fn main() {
|
||||
let bytes = include_bytes!("/home/tmerritt/Projects/mos6502/resources/test/periph/at28c256/checksum.bin");
|
||||
println!("Taxation is theft");
|
||||
let path = "/home/tmerritt/Projects/mos6502/resources/test/periph/at28c256/checksum.bin";
|
||||
let bytes = match fs::read(path) {
|
||||
Ok(bytes) => {
|
||||
println!("Loaded {} bytes", bytes.len());
|
||||
bytes
|
||||
},
|
||||
Err(e) => vec![]
|
||||
};
|
||||
|
||||
let mut ramrom_computer = RamRomComputer::program_rom((&bytes[..]).to_vec());
|
||||
|
||||
@@ -19,9 +14,17 @@ fn main() {
|
||||
ramrom_computer.data_bus(),
|
||||
ramrom_computer.address_bus()
|
||||
);
|
||||
println!("--TICK--");
|
||||
ramrom_computer.tick2(0x4005, 0b0000_0001, ramrom_computer.data_bus());
|
||||
println!("COMPUTER: Read {:02x} from ROM / {:04x} from Address bus",
|
||||
ramrom_computer.data_bus(),
|
||||
ramrom_computer.address_bus()
|
||||
);
|
||||
println!("--TICK--");
|
||||
ramrom_computer.tick2(0x4005, 0b0000_0000, ramrom_computer.data_bus());
|
||||
println!("COMPUTER: Read {:02x} from ROM / {:04x} from Address bus",
|
||||
ramrom_computer.data_bus(),
|
||||
ramrom_computer.address_bus()
|
||||
);
|
||||
println!("--TICK--");
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
use std::fs;
|
||||
use core::computers::rom_only::RomOnlyComputer;
|
||||
use core::periph::backplane::Backplane;
|
||||
use core::traits::backplane::Backplane;
|
||||
|
||||
fn main() {
|
||||
println!("Taxation is theft");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use std::fs;
|
||||
use core::computers::rom_only::RomOnlyComputer;
|
||||
use core::periph::backplane::Backplane;
|
||||
use core::traits::backplane::Backplane;
|
||||
|
||||
fn main() {
|
||||
println!("Taxation is theft");
|
||||
|
||||
Reference in New Issue
Block a user