pr4.1
This commit is contained in:
@@ -56,23 +56,6 @@ pub struct BudgetReport {
|
||||
pub reason: LogicalFrameEndingReason,
|
||||
}
|
||||
|
||||
/// The PVM (PROMETEU Virtual Machine).
|
||||
///
|
||||
/// A deterministic, stack-based virtual machine designed for game logic and
|
||||
/// educational simulation. The PVM executes bytecode compiled from TypeScript/JS
|
||||
/// and interacts with virtual hardware through a specialized instruction set.
|
||||
///
|
||||
/// ### Architecture Highlights:
|
||||
/// - **Stack-Based**: Most operations pop values from the stack and push results back.
|
||||
/// - **Deterministic**: Execution is cycle-aware, allowing for precise performance budgeting.
|
||||
/// - **Sandboxed**: No direct access to the host system; all I/O goes through Syscalls.
|
||||
/// - **Type-Aware**: Supports integers, floats, booleans, and strings with automatic promotion.
|
||||
///
|
||||
/// ### Memory Regions:
|
||||
/// - **ROM**: Immutable instruction storage.
|
||||
/// - **Operand Stack**: Fast-access temporary storage for calculations.
|
||||
/// - **Global Pool**: Persistent storage for cross-frame variables.
|
||||
/// - **Heap**: Dynamic memory for complex data (simplified version).
|
||||
pub struct VirtualMachine {
|
||||
/// Program Counter (PC): The absolute byte offset in ROM for the next instruction.
|
||||
pub pc: usize,
|
||||
|
||||
Reference in New Issue
Block a user