add small boot management

This commit is contained in:
Nilton Constantino
2026-01-15 17:01:25 +00:00
parent 0b78bf4797
commit 1dbe79883c
8 changed files with 363 additions and 174 deletions
+4 -5
View File
@@ -1,13 +1,12 @@
use crate::vm::Value;
use crate::vm::Program;
#[derive(Clone, Debug)]
pub struct Cartridge {
pub rom: Vec<u8>,
pub constant_pool: Vec<Value>,
pub program: Program,
}
impl Cartridge {
pub fn new(rom: Vec<u8>, constant_pool: Vec<Value>) -> Self {
Self { rom, constant_pool }
pub fn new(program: Program) -> Self {
Self { program }
}
}