summaryrefslogtreecommitdiff
path: root/macros/data.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-05-07 11:09:41 -0400
committerRangi <35663410+Rangi42@users.noreply.github.com>2020-05-07 14:21:24 -0400
commit5f197c53f47e19b860df7c92bd1971f2a73f1156 (patch)
treeb76c2bfa4c7845c4597cdd2748e26ce44aa00218 /macros/data.asm
parent8c51de1aba87743013feba24f8b0957b108be215 (diff)
Clean up some percentage values
Diffstat (limited to 'macros/data.asm')
-rw-r--r--macros/data.asm23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/data.asm b/macros/data.asm
index e9052f6b2..a6656af32 100644
--- a/macros/data.asm
+++ b/macros/data.asm
@@ -1,7 +1,30 @@
; Value macros
+; Many arbitrary percentages are simple base-10 or base-16 values:
+; - 10 = 4 percent
+; - 15 = 6 percent
+; - $10 = 6 percent + 1 = 7 percent - 1
+; - 20 = 8 percent
+; - 25 = 10 percent
+; - 30 = 12 percent
+; - 40 = 16 percent
+; - 50 = 20 percent - 1
+; - 60 = 24 percent - 1
+; - 70 = 28 percent - 1
+; - 80 = 31 percent + 1 = 32 percent - 1
+; - 85 = 33 percent + 1 = 34 percent - 1
+; - 100 = 39 percent + 1 = 40 percent - 2
+; - 120 = 47 percent + 1
+; - 123 = 49 percent - 1
+; - 160 = 63 percent
+; - 180 = 71 percent - 1 = 70 percent + 2
+; - 200 = 79 percent - 1
+; - 230 = 90 percent + 1
percent EQUS "* $ff / 100"
+; e.g. 1 out_of 2 == 50 percent + 1 == $80
+out_of EQUS "* $100 /"
+
; Constant data (db, dw, dl) macros
dwb: MACRO