holey-bytes/hbvm/src/lib.rs

21 lines
327 B
Rust
Raw Normal View History

#![no_std]
2023-04-22 21:06:33 +00:00
extern crate alloc;
2023-04-17 12:31:18 +00:00
pub mod bytecode;
2023-04-18 23:08:30 +00:00
pub mod engine;
2023-04-22 21:06:33 +00:00
pub mod memory;
2023-04-22 18:00:19 +00:00
2023-04-18 23:08:30 +00:00
#[derive(Debug)]
2023-04-17 12:31:18 +00:00
pub enum RuntimeErrors {
InvalidOpcode(u8),
RegisterTooSmall,
2023-04-22 22:17:49 +00:00
HostError(u64),
2023-05-06 12:33:40 +00:00
PageNotMapped(u64),
2023-04-17 12:31:18 +00:00
}
// If you solve the halting problem feel free to remove this
pub enum HaltStatus {
Halted,
Running,
}