aboutsummaryrefslogtreecommitdiff
path: root/src/memclear.s
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-25 03:34:30 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-25 03:34:30 -0400
commitc93e82fa285edf0d5ed2447e0b32b9f6ce17f49e (patch)
tree9d4e7d80c17727750b0afe790652f14d0e16e354 /src/memclear.s
parenta50e1e52fd7c62fda2d1804a3c7a860e47bf74a4 (diff)
downloadfujinet-chat-c93e82fa285edf0d5ed2447e0b32b9f6ce17f49e.tar.gz
Fix steal_line(), no more crashes.
Diffstat (limited to 'src/memclear.s')
-rw-r--r--src/memclear.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memclear.s b/src/memclear.s
index 1bd7e89..7a814cc 100644
--- a/src/memclear.s
+++ b/src/memclear.s
@@ -1,6 +1,8 @@
; void memclear(const char *addr, unsigned int len)
; really does have to be an int for the length.
+ ; NOTE: length must be <= $7fff. not much of a problem, do you
+ ; ever need to zero out >= 32K of RAM at once?
; this is basically bzero(), but optimized for size, not speed.
; bzero() is around 2.3x as fast as this, but it's 3.3x as