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

23 lines
280 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 {
2024-02-17 11:22:26 +05:30
AllocationFailure(DeviceType, &'static str),
UnreachableMemory(DeviceType, u32),
InvalidColor(u8)
2024-02-17 09:54:41 +05:30
}