From ab84ad75629b0a4124221023ca91411d2cd62a32 Mon Sep 17 00:00:00 2001 From: Ben Bridle <ben@derelict.engineering> Date: Tue, 25 Mar 2025 12:46:49 +1300 Subject: Restructure program This commit also includes changes to devices according to the latest devices specification, in particular the math and system devices. --- src/lib.rs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 0df1efb..ac72b98 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,20 +1,25 @@ #![feature(bigint_helper_methods)] -#![feature(unchecked_shifts)] #![feature(seek_stream_len)] -#![feature(io_error_more)] +#![feature(unchecked_shifts)] -mod debug; mod devices; mod emulators; -mod metadata; +mod types; +mod load_program; -pub use debug::DebugState; pub use devices::*; pub use emulators::*; -pub use metadata::*; +pub use types::*; +pub use load_program::*; + +use bedrock_core::*; +use log::*; +use phosphor::*; use std::num::NonZeroU32; -use std::time::Duration; +use std::path::{Path, PathBuf}; +use std::time::{Duration, Instant}; + pub const BATCH_SIZE: usize = 1000; pub const MIN_TICK_DURATION: Duration = Duration::from_millis( 4 ); pub const MIN_FRAME_DURATION: Duration = Duration::from_millis( 14 ); -- cgit v1.2.3-70-g09d2