diff options
Diffstat (limited to 'js/mem.js')
| -rw-r--r-- | js/mem.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -139,6 +139,9 @@ function get_our_slide() { } } +/* + * write str to addy + */ function write_str(addy, s) { for (cur_addy = addy; cur_addy < (addy + s.length); cur_addy++) { write_u8(cur_addy, s.charCodeAt(cur_addy - addy)); @@ -147,8 +150,12 @@ function write_str(addy, s) { return s; } +/* + * sptr is meant to give you a pointer to a specified string + * remember your nul's! + */ function sptr(s) { write_str(global_sptr_addy, s); global_sptr_addy += s.length; return global_sptr_addy - s.length; -} +}
\ No newline at end of file |
