Files
byte-pusher-emu/src/misc/emulator_error.rs

22 lines
262 B
Rust
Raw Normal View History

2024-02-17 09:54:41 +05:30
use std::fmt::Debug;
#[derive(Debug)]
pub enum DeviceType {
RAM,
MMU,
KEYBOARD,
AUDIO,
GRAPHICS,
}
#[derive(Debug)]
pub enum EmulatorError {
AllocationError(DeviceType, &'static str),
UnreachableMemoryError(DeviceType, u32),
}