summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-10-29 17:33:47 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-10-29 17:33:47 -0400
commitfd24d1a3d0ac503a150c3f5cb21aab382b19865c (patch)
treeb5496f5d710bc4686971b6a572debdbbd7aa14f0
parent5998a045fb0ae5fb000d5ecf51715992dc837e7d (diff)
Clarify documentation of maskbits
-rw-r--r--macros/code.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/code.asm b/macros/code.asm
index 5b3c05ea..89e7c6e9 100644
--- a/macros/code.asm
+++ b/macros/code.asm
@@ -24,8 +24,8 @@ jumptable: MACRO
ENDM
maskbits: MACRO
-; masks just enough bits to cover the first argument
-; the second argument is an optional shift amount
+; masks just enough bits to cover values 0 to \1 - 1
+; \2 is an optional shift amount
; e.g. "maskbits 26" becomes "and %00011111" (since 26 - 1 = %00011001)
; and "maskbits 3, 2" becomes "and %00001100" (since "maskbits 3" becomes %00000011)
; example usage in rejection sampling: