diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-04 17:09:35 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-04 21:14:46 -0400 |
commit | 139a28ff9906d728a6820fe678a2a616eb309421 (patch) | |
tree | 9a4339b97e16e10c5b007e836f1f3fadd33bd9f4 /macros/code.asm | |
parent | 2718c36065e7eb201a149938bcdd51987c4e56b6 (diff) |
Port pokecrystal's formatting of text commands and special characters
Diffstat (limited to 'macros/code.asm')
-rwxr-xr-x | macros/code.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/macros/code.asm b/macros/code.asm index 8b7d6184..72ce9caf 100755 --- a/macros/code.asm +++ b/macros/code.asm @@ -7,3 +7,14 @@ ENDM ldPal: MACRO ld \1, \2 << 6 | \3 << 4 | \4 << 2 | \5 ENDM + +; Design patterns + +dict: MACRO +if \1 == 0 + and a +else + cp \1 +endc + jp z, \2 +ENDM |