diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-11-23 20:18:08 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-11-23 20:18:08 -0500 |
commit | ab0f9c287a45d1986985545d7ec6a2cd862e26fc (patch) | |
tree | 8063a15ad7082b953e47d2d00afd2679f9a8b470 /macros/const.asm | |
parent | 6834c7a9a149aaadccc7d41bc93e5440d84d8b66 (diff) |
Use compound assignment operators
Diffstat (limited to 'macros/const.asm')
-rw-r--r-- | macros/const.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/const.asm b/macros/const.asm index 11d96d179..aed8bde4a 100644 --- a/macros/const.asm +++ b/macros/const.asm @@ -15,19 +15,19 @@ ENDM const: MACRO \1 EQU const_value -const_value = const_value + const_inc +const_value += const_inc ENDM shift_const: MACRO -\1 EQU (1 << const_value) -const_value = const_value + const_inc +\1 EQU 1 << const_value +const_value += const_inc ENDM const_skip: MACRO if _NARG >= 1 -const_value = const_value + const_inc * (\1) +const_value += const_inc * (\1) else -const_value = const_value + const_inc +const_value += const_inc endc ENDM |