aboutsummaryrefslogtreecommitdiffstats
path: root/c/libc.s
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/libc.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/c/libc.s b/c/libc.s
index 2e2516b..5b81dca 100644
--- a/c/libc.s
+++ b/c/libc.s
@@ -199,3 +199,17 @@ _reap:
ld c, #22 ; SYS_REAP
rst #0x30
ret
+
+ .globl _bfill, _bpeek
+ ;; void bfill(unsigned char block /*A*/, unsigned char byte /*E*/)
+_bfill:
+ ld b, a
+ ld c, #23 ; SYS_BFILL
+ rst #0x30
+ ret
+ ;; unsigned char bpeek(unsigned char block /*A*/) -> A
+_bpeek:
+ ld b, a
+ ld c, #24 ; SYS_BPEEK
+ rst #0x30
+ ret