diff options
| author | spv <aquaticvegetable@gmail.com> | 2022-04-22 15:57:02 -0400 |
|---|---|---|
| committer | spv <aquaticvegetable@gmail.com> | 2022-04-22 15:57:02 -0400 |
| commit | d7cf3795b6da29a8ec7a6b7fc1245b70ff9d3dca (patch) | |
| tree | 6358354070c6500ab77893478a8bf1179e5bb026 /js/mem.js | |
| parent | f6a6595c6df8266673decccbd909aecf4cd60cf0 (diff) | |
stuff
Diffstat (limited to 'js/mem.js')
| -rw-r--r-- | js/mem.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; +} |
