From d7cf3795b6da29a8ec7a6b7fc1245b70ff9d3dca Mon Sep 17 00:00:00 2001 From: spv Date: Fri, 22 Apr 2022 15:57:02 -0400 Subject: stuff --- js/mem.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js/mem.js') 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; +} -- cgit v1.2.3