From 0946b8392fbf93d80ab0b5dfeaeff9f95436d04d Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 11 Jul 2021 18:00:54 -0400 Subject: rept -> for --- Optimizing-assembly-code.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Optimizing-assembly-code.md b/Optimizing-assembly-code.md index 9fadc1d..017085e 100644 --- a/Optimizing-assembly-code.md +++ b/Optimizing-assembly-code.md @@ -276,11 +276,9 @@ Or if you really want to optimize for speed over size, then do this: ; 256 bytes; placed in ROM0 or the same ROMX section as the bit reversal SECTION "ReversedBitTable", ROM0, ALIGN[8] ReversedBitTable:: -x = 0 -rept 256 +for x, 256 ; http://graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith32Bits db LOW(((((x * $802) & $22110) | ((x * $8020) & $88440)) * $10101) >> 16) -x = x + 1 endr ``` -- cgit v1.2.3