diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-10-24 00:02:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-10-24 00:02:07 -0700 |
commit | 7d28bbe2f2c42a6b60ab99fb6a957098409c36f1 (patch) | |
tree | af35f697d56b667761817f0f2cb02623a691ac87 | |
parent | 1cfaf7537c6ebfa72a320eaa130b0d597c67219b (diff) | |
download | mu-7d28bbe2f2c42a6b60ab99fb6a957098409c36f1.tar.gz |
.
-rw-r--r-- | mu.md | 5 |
1 files changed, 4 insertions, 1 deletions
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: |