adds docs

working on widetick
This commit is contained in:
2025-07-26 11:02:36 -04:00
parent b40c3c503f
commit 8f6f9cb64d
49 changed files with 488 additions and 93 deletions
+1 -1
View File
@@ -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() {
+12 -9
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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");