forked from AbleOS/holey-bytes
24 lines
430 B
Rust
24 lines
430 B
Rust
#![no_std]
|
|
extern crate alloc;
|
|
|
|
pub mod bytecode;
|
|
pub mod engine;
|
|
pub mod memory;
|
|
|
|
#[derive(Debug, PartialEq)]
|
|
pub enum RuntimeErrors {
|
|
InvalidOpcodePair(u8, u8),
|
|
RegisterTooSmall,
|
|
HostError(u64),
|
|
PageNotMapped(u64),
|
|
InvalidJumpAddress(u64),
|
|
InvalidSystemCall(u8),
|
|
}
|
|
|
|
// If you solve the halting problem feel free to remove this
|
|
#[derive(PartialEq, Debug)]
|
|
pub enum HaltStatus {
|
|
Halted,
|
|
Running,
|
|
}
|