Nilton Constantino d447354472
clean up
2026-01-16 15:15:04 +00:00

21 lines
370 B
Rust

use crate::vm::Program;
#[derive(Debug, Clone)]
pub struct AppHeader {
pub app_id: String,
pub title: String,
pub entrypoint: u32,
}
#[derive(Clone, Debug)]
pub struct Cartridge {
pub header: AppHeader,
pub program: Program,
}
impl Cartridge {
pub fn new(header: AppHeader, program: Program) -> Self {
Self { header, program }
}
}