diff options
Diffstat (limited to 'src/luma/device.rs')
-rw-r--r-- | src/luma/device.rs | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/src/luma/device.rs b/src/luma/device.rs deleted file mode 100644 index 240535d..0000000 --- a/src/luma/device.rs +++ /dev/null @@ -1,84 +0,0 @@ -/* - Copyright 2021-2023 Gabriel Jensen. - - This file is part of Luma. - - Luma is free software: you can redistribute it - and/or modify it under the terms of the GNU - Affero General Public License as published by - the Free Software Foundation, either version 3 - of the License, or (at your option) any later - version. - - Luma is distributed in the hope that it will be - useful, but WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Affero General Public License for more details. - - You should have received a copy of the GNU - Affero General Public License along with Luma. - If not, see <https://www.gnu.org/licenses/>. -*/ - -pub mod bootloader; -pub mod branch; -pub mod check_condition; -pub mod r#continue; -pub mod decode_arm; -pub mod decode_thumb; -pub mod drop; -pub mod exchange; -pub mod image; -pub mod interrupt; -pub mod link; -pub mod load; -pub mod log; -pub mod memory; -pub mod r#move; -pub mod new; -pub mod palette; -pub mod pop; -pub mod push; -pub mod read; -pub mod shift; -pub mod store; -pub mod thumb; -pub mod trap; -pub mod video; -pub mod write; - -pub enum Trap { - BadAlignment( u32, u32), - InvalidArmOpcode( u32, u32), - InvalidThumbOpcode(u32, u16), - OutOfBounds( u32), -} - -pub enum Log { - Branch, - Continue, - Exchange, - Interrupt, - Link, - Load, - Move, - Pop, - Push, - Shift, - Store, -} - -pub enum Move { - Immediate(u8), - Register( u8), -} - -pub struct Device { - pub decode: fn(&mut Device), - - memory: *mut u8, - registers: [u32; 0x10], - cpsr: u32, - spsr: [u32; 0x10], // We don't actually use all sixteen, we just have this many to enable us to directly use the mode number as the offset. -} |