add small boot management
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user