Expand description
Emulation of the TX-2 computer.
ยงPrinciples of Operation
Calls are non-blocking and update the state of the emulated TX-2 where necessary.
ยงTiming
Method calls return information about how much simulated time they would have taken up. The caller is responsible for snsuring that method calls are paced such that the overall execution speed is whatever it wants (for example 1x speed).
Re-exportsยง
use std::cmp::min;๐use std::collections::BTreeMap;๐use std::time::Duration;๐use tracing::Level;๐use tracing::event;๐use tracing::event;๐use tracing::span;๐use tracing::span;๐use crate::diagnostics::CurrentInstructionDiagnostics;๐use super::PETR;๐use super::alarm::Alarm;๐use super::alarm::AlarmKind;๐use super::alarm::Alarmer;๐use super::alarm::UnmaskedAlarm;๐use super::alarmunit::AlarmStatus;๐use super::context::Context;๐use super::control::ConfigurationMemorySetup;๐use super::control::ControlUnit;๐use super::control::ResetMode;๐use super::control::RunMode;๐use super::event::InputEvent;๐use super::event::OutputEvent;๐use super::io::DeviceManager;๐use super::io::ExtendedUnitState;๐use super::io::InputFlagRaised;๐use super::io::set_up_peripherals;๐use super::memory::MemoryConfiguration;๐use super::memory::MemoryUnit;๐use super::InputEventError;๐use super::PanicOnUnmaskedAlarm;๐use wasm_bindgen::prelude::*;๐use base::prelude::*;๐
Structsยง
- Tx2
Tx2emulates the TX-2 computer, with peripherals.