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

23 lines
288 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),
2024-02-17 10:56:36 +05:30
InvalidColorError(u8)
2024-02-17 09:54:41 +05:30
}