This commit is contained in:
2026-03-24 13:40:43 +00:00
parent a199857280
commit af755a1241
9 changed files with 15 additions and 12 deletions
@@ -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).
+2 -2
View File
@@ -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,