From fbbeed8c10dc9c9bdb34f946d5b844b537ebad7a Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 7 Dec 2024 13:29:46 -0700 Subject: Proof of concept for macro opcode defs --- src/interpreter.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/interpreter.rs') 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, - stack: Vec, - mem_writeable: MemAddress, - mem_min: MemAddress, - heap: Vec, - - reg_program: MemAddress, - reg_stack: StackAddress, - reg_frame: StackAddress, - reg_strdec: MemAddress, - - output_mode: Output, + pub memory: Vec, + pub stack: Vec, + pub mem_writeable: MemAddress, + pub mem_min: MemAddress, + pub heap: Vec, + + pub reg_program: MemAddress, + pub reg_stack: StackAddress, + pub reg_frame: StackAddress, + pub reg_strdec: MemAddress, + + pub output_mode: Output, } impl Interpreter { -- cgit 1.4.1