Use compound assignment operators

This commit is contained in:
Rangi
2021-11-23 20:18:08 -05:00
parent 6834c7a9a1
commit ab0f9c287a
17 changed files with 28 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
NUM_ODD_EGGS EQU 14
prob: MACRO
prob_total = prob_total + (\1)
prob_total += \1
dw prob_total * $ffff / 100
ENDM

View File

@@ -9,7 +9,7 @@ rept _NARG
if DEF(\1_TMNUM)
n = (\1_TMNUM - 1) / 8
i = (\1_TMNUM - 1) % 8
_tm{d:n} = _tm{d:n} | (1 << i)
_tm{d:n} |= 1 << i
else
fail "\1 is not a TM, HM, or tutor move"
endc

View File

@@ -9,7 +9,7 @@ rept _NARG - 1
shift
endr
db 0
list_index = list_index + 1
list_index += 1
ENDM
RoamMaps: