clean up
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
//! This module defines the Application Binary Interface (ABI) of the Prometeu Virtual Machine.
|
||||
//! It specifies how instructions are encoded in bytes and how they interact with memory.
|
||||
|
||||
// --- Runtime Trap Codes (post-HIP reset) ---
|
||||
|
||||
/// Attempted to execute an unknown or invalid opcode.
|
||||
pub const TRAP_ILLEGAL_INSTRUCTION: u32 = 0x0000_0001;
|
||||
/// Out-of-bounds access (e.g., stack/heap/local index out of range).
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
mod abi;
|
||||
mod decoder;
|
||||
mod layout;
|
||||
mod model;
|
||||
pub mod model;
|
||||
mod opcode;
|
||||
mod opcode_spec;
|
||||
mod program_image;
|
||||
mod value;
|
||||
pub mod isa; // canonical ISA boundary (core and future profiles)
|
||||
mod disassembler;
|
||||
mod assembler;
|
||||
pub mod assembler;
|
||||
|
||||
pub use abi::{
|
||||
TrapInfo, TRAP_BAD_RET_SLOTS, TRAP_DIV_ZERO, TRAP_ILLEGAL_INSTRUCTION, TRAP_INVALID_FUNC,
|
||||
|
||||
@@ -43,7 +43,7 @@ impl DirectoryCartridgeLoader {
|
||||
return Err(CartridgeError::UnsupportedVersion);
|
||||
}
|
||||
|
||||
let program_path = path.join("program.pbc");
|
||||
let program_path = path.join("program.pbx");
|
||||
if !program_path.exists() {
|
||||
return Err(CartridgeError::MissingProgram);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ mod local_addressing;
|
||||
#[cfg(not(test))]
|
||||
mod verifier;
|
||||
#[cfg(test)]
|
||||
pub mod verifier;
|
||||
mod verifier;
|
||||
mod virtual_machine;
|
||||
mod vm_init_error;
|
||||
mod object;
|
||||
|
||||
Reference in New Issue
Block a user