diff options
| author | Cody <cody@codyq.dev> | 2023-04-11 00:38:31 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-04-11 00:38:31 -0500 |
| commit | 7451bdb02d54243eb299dde55f22d3b06ac5b2f2 (patch) | |
| tree | cf246740b4184300b3c8418b4f4d33bd31daff83 /crates | |
| parent | 814fa68350cf75d5848ec6b4914e3f3bafee10fa (diff) | |
| download | sloth-7451bdb02d54243eb299dde55f22d3b06ac5b2f2.tar.gz | |
goodnight
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/sloth_vm/src/lib.rs | 10 |
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; |
