diff options
Diffstat (limited to 'src/core.rs')
-rw-r--r-- | src/core.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core.rs b/src/core.rs new file mode 100644 index 0000000..2143e3d --- /dev/null +++ b/src/core.rs @@ -0,0 +1,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, + } + } +} |