1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use crate::*; pub struct BedrockCore { pub mem: ProgramMemory, pub wst: Stack, pub rst: Stack, pub cycle: usize, } impl BedrockCore { pub fn new() -> Self { Self { mem: ProgramMemory::new(), wst: Stack::new(), rst: Stack::new(), cycle: 0, } } }