Shows text is page.

This commit is contained in:
Brad Nelson
2022-07-14 15:15:14 -07:00
parent 9d79b26e9e
commit c07be3978a
2 changed files with 41 additions and 10 deletions

View File

@ -36,20 +36,15 @@ var u16 = new Uint16Array(heap);
var u8 = new Uint8Array(heap);
var builtins = [];
var opcodes = {};
var objects = [Type, Eval];
var objects = [SetEval];
{{sys}}
function Type(sp) {
function SetEval(sp) {
var index = i32[sp>>2]; sp -= 4;
var n = i32[sp>>2]; sp -= 4;
var a = i32[sp>>2]; sp -= 4;
console.log(GetString(a, n));
}
function Eval(sp) {
var n = i32[sp>>2]; sp -= 4;
var a = i32[sp>>2]; sp -= 4;
eval(GetString(a, n));
objects[index] = eval(GetString(a, n));
}
function Call(sp) {