diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-12-07 13:29:46 -0700 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-12-07 13:29:46 -0700 |
commit | fbbeed8c10dc9c9bdb34f946d5b844b537ebad7a (patch) | |
tree | 096b6387ed9a72c93cafb3e8052be51c78c52b11 /src/interpreter.rs | |
parent | 3e51fca06d097698add372c1052751b3b6313be3 (diff) |
Proof of concept for macro opcode defs
Diffstat (limited to 'src/interpreter.rs')
-rw-r--r-- | src/interpreter.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/interpreter.rs b/src/interpreter.rs index ebddcf6..b93b05f 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -37,18 +37,18 @@ pub enum Output { } pub struct Interpreter { - memory: Vec<u8>, - stack: Vec<u8>, - mem_writeable: MemAddress, - mem_min: MemAddress, - heap: Vec<HeapChunk>, - - reg_program: MemAddress, - reg_stack: StackAddress, - reg_frame: StackAddress, - reg_strdec: MemAddress, - - output_mode: Output, + pub memory: Vec<u8>, + pub stack: Vec<u8>, + pub mem_writeable: MemAddress, + pub mem_min: MemAddress, + pub heap: Vec<HeapChunk>, + + pub reg_program: MemAddress, + pub reg_stack: StackAddress, + pub reg_frame: StackAddress, + pub reg_strdec: MemAddress, + + pub output_mode: Output, } impl Interpreter { |