summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 9bf001464..fadece74e 100644
--- a/macros.asm
+++ b/macros.asm
@@ -139,3 +139,11 @@ x = 0
x = x + (\1) * $40000
endr
ENDM
+
+
+bcd: MACRO
+ rept _NARG
+ dn ((\1) % 100) / 10, (\1) % 10
+ shift
+ endr
+ENDM