fixed size from 32mb to 32kb

This commit is contained in:
Trevor Merritt 2025-07-01 13:14:01 -04:00
parent f9c938757f
commit 9b9462c98c
3 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@ use macroquad::prelude::*;
use macroquad::telemetry::frame;
use beneater::parts::ben_eater_pc::BenEaterPC;
use beneater::parts::display_matrix::DisplayMatrix;
#[macroquad::main("Ben Eaters PC")]
async fn main() {
println!("Taxation is Theft");

View File

@ -1,4 +1,4 @@
pub const SIZE_1KB: usize = 1024 * 1024;
pub const SIZE_1KB: usize = 1024;
pub const SIZE_32KB: usize = SIZE_1KB * 32;
pub const SIZE_64KB: usize = SIZE_1KB * 64;

View File

@ -28,7 +28,7 @@ impl RomChip for At28C256 {
self.data[*offset as usize]
}
fn program(new_data: Box<[u8; 33554432]>) -> Box<At28C256> {
fn program(new_data: Box<[u8; SIZE_32KB]>) -> Box<At28C256> {
println!("Writing new chip.");
let mut working = At28C256::default();
working.data = Box::new(*new_data);