aboutsummaryrefslogtreecommitdiff
path: root/src/js/tinyvm.ts
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 15:52:01 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 15:52:01 +0330
commit7c54e48bca711a6596be4bb17fcaa4330b9928e3 (patch)
treefd426755976847e368fe298db1c7c757f58799b9 /src/js/tinyvm.ts
parenttodo: record each agent's state at the end of the session and the merge order (diff)
line tables and backtraces: port agent/line-tables onto main, op 56 on the x86-64 jit, docs, measurements, tests; default genome reservation 0x68000
Diffstat (limited to 'src/js/tinyvm.ts')
-rw-r--r--src/js/tinyvm.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/tinyvm.ts b/src/js/tinyvm.ts
index f779487..f52d4af 100644
--- a/src/js/tinyvm.ts
+++ b/src/js/tinyvm.ts
@@ -466,6 +466,8 @@ export class TinyVM {
}
return -1n;
}
+ case 56: // the return stack pointer: the word after the top return address
+ return BigInt(this.rr);
case 42: // poll: input is waiting
return this.inputPos < this.inputBuffer.length ? 1n : 0n;
case 41: { // shortest float text into a word buffer