add function execution to the VM

This commit is contained in:
afonya2 2025-06-03 18:32:52 +02:00
parent 598f4a0cdb
commit a5c2420d20
Signed by: afonya
GPG key ID: EBB9C4CAFAAFB2DC
4 changed files with 82 additions and 26 deletions

View file

@ -133,7 +133,7 @@ fn main() {
vm.run();
println!("\n");
println!("Registers: {:?}", vm.registers);
println!("Program Counter: {}", vm.pc);
println!("Stack: {:?}", vm.stack);
println!("Memory: {:?}", vm.memory);
/*let mut executor = Executor::new(ast, 100);
executor.resume();