Logo
Explore Help
Sign In
intercal/rasp
1
0
Fork 0
You've already forked rasp
Code Issues Pull Requests Releases Wiki Activity
Files
214f0b8aed8b46ea45380a0709dc98bad1872bbc
rasp/src/vm/error.rs

10 lines
190 B
Rust
Raw Normal View History

Add object layout, object parsing, instruction layout * Object layout and parsing are done in the vm::obj module * Add MemCursor, a wrapper around the std::io::Cursor type for walking through VM memory * Add vm::tick module for containing the Vm::tick() method implementation, since it's pretty big * Instructions are now variable-sized, and are read lazily, one-at-a-time directly from memory. * Add VM runtime error structure * Probably some other stuff I forgot Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-02-03 17:56:32 -05:00
use snafu::Snafu;
use crate::vm::vm::*;
#[derive(Snafu, Debug, Clone)]
pub enum VmError {
MemOutOfBounds { addr: Addr, }
}
pub type Result<T, E = VmError> = std::result::Result<T, E>;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 40ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API