summaryrefslogtreecommitdiff
path: root/js/mem.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mem.js')
-rw-r--r--js/mem.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/mem.js b/js/mem.js
index c342707..cfa6698 100644
--- a/js/mem.js
+++ b/js/mem.js
@@ -145,3 +145,11 @@ function write_str(addy, s) {
return s;
}
+
+var global_sptr_addy = 0x150000;
+
+function sptr(s) {
+ write_str(global_sptr_addy, s);
+ global_sptr_addy += s.length;
+ return global_sptr_addy - s.length;
+}