aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-04-11 00:38:31 -0500
committerCody <cody@codyq.dev>2023-04-11 00:38:31 -0500
commit7451bdb02d54243eb299dde55f22d3b06ac5b2f2 (patch)
treecf246740b4184300b3c8418b4f4d33bd31daff83
parent814fa68350cf75d5848ec6b4914e3f3bafee10fa (diff)
downloadsloth-7451bdb02d54243eb299dde55f22d3b06ac5b2f2.tar.gz
goodnight
-rw-r--r--crates/sloth_vm/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/lib.rs b/crates/sloth_vm/src/lib.rs
index 9240577..68f0406 100644
--- a/crates/sloth_vm/src/lib.rs
+++ b/crates/sloth_vm/src/lib.rs
@@ -27,6 +27,16 @@ impl VM {
}
}
+ fn execute(&mut self) {
+ loop {
+ self.execute_once();
+ }
+ }
+
+ fn execute_once(&mut self) {
+ //
+ }
+
fn run(&mut self, chunk: &Chunk) {
let mut pointer = 0;