From 7d28bbe2f2c42a6b60ab99fb6a957098409c36f1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 24 Oct 2021 00:02:07 -0700 Subject: [PATCH] . --- mu.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mu.md b/mu.md index f6d0063b..f6702820 100644 --- a/mu.md +++ b/mu.md @@ -467,7 +467,10 @@ Arrays are declared in two ways: var x-ah/eax: (addr handle array int) <- address x populate x-ah, 8 ``` - The `8` here can also be an int in a register or memory. + +The `8` here can also be an int in a register or memory. (The `-ah` is a +common variable naming convention and stands for "address of a handle". +Essential for allocating long-lived data on the heap.) You can compute the length of an array, though you'll need an `addr` to do so: