From 002f2609e91ed2e49c250202877290f58609a982 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 15 Nov 2020 23:13:23 -0800 Subject: 7248 - mu.subx: new primitive 'clear-object' --- mu_instructions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mu_instructions') diff --git a/mu_instructions b/mu_instructions index 629ba3d1..f487d29a 100644 --- a/mu_instructions +++ b/mu_instructions @@ -384,6 +384,9 @@ populate-stream in: (addr handle stream T), num # can be literal or variable on # Some miscellaneous helpers to avoid error-prone size computations +clear x: (addr T) + => "(zero-out " s " " size-of(T) ")" + read-from-stream s: (addr stream T), out: (addr T) => "(read-from-stream " s " " out " " size-of(T) ")" -- cgit 1.4.1-2-gfad0