Skip to main content

Module tx2

Module tx2 

Source
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
Tx2 emulates the TX-2 computer, with peripherals.