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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|