diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-11-23 20:56:57 -0500 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-11-23 20:56:57 -0500 |
| commit | 865d37e02ad6af386e7f596659ebec12266be3ce (patch) | |
| tree | 0b18ba59c76faf74f30850fdaa957177cf72ec2b /macros/const.asm | |
| parent | Require rgbds 0.5.2 (diff) | |
| download | pokeyellow-865d37e02ad6af386e7f596659ebec12266be3ce.tar.gz pokeyellow-865d37e02ad6af386e7f596659ebec12266be3ce.tar.xz pokeyellow-865d37e02ad6af386e7f596659ebec12266be3ce.zip | |
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 3df9ecd8..afbde7bc 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 |
