aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_asm/builtin_asm/std_math.atk16
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-04-14 17:20:34 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-04-14 17:20:34 +0300
commit367813568d723e598a38a7327fc2bb4abcfc598c (patch)
treef4c72a5e3f3992d8b43ed0a5e695c8e9aa790ecf /atk16_asm/builtin_asm/std_math.atk16
parent2f69a9ac8c2de9d37248baa5c774c2813f070ba0 (diff)
Add data_segment feature, refactor
Diffstat (limited to 'atk16_asm/builtin_asm/std_math.atk16')
-rw-r--r--atk16_asm/builtin_asm/std_math.atk166
1 files changed, 2 insertions, 4 deletions
diff --git a/atk16_asm/builtin_asm/std_math.atk16 b/atk16_asm/builtin_asm/std_math.atk16
index 58b9cdb..6544b32 100644
--- a/atk16_asm/builtin_asm/std_math.atk16
+++ b/atk16_asm/builtin_asm/std_math.atk16
@@ -1,7 +1,5 @@
-@label mul_sign_mask
- ${2 ** 15}
-@label mul_not_mask
- 0xFFFF
+@data mul_sign_mask ${2 ** 15}
+@data mul_not_mask 0xFFFF
@label mul
; multiply a signed (a) and a signed (b)