summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index cbd071b8f..ccbc4ed22 100644
--- a/macros.asm
+++ b/macros.asm
@@ -136,3 +136,9 @@ bcd: MACRO
shift
endr
ENDM
+
+add_n_times: MACRO
+ rept \3
+ add \1, \2
+ endr
+ENDM