diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2020-07-05 19:58:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 19:58:21 -0400 |
commit | c57c93d2b2fb06cadafefda37c0974ba1ec9e6c0 (patch) | |
tree | 531d6b30d5a606ae963024825ed6e614843000a6 /macros/code.asm | |
parent | 2718c36065e7eb201a149938bcdd51987c4e56b6 (diff) | |
parent | 5fe8aab3445cb76d8e1c4be954c0392f40798950 (diff) |
Merge pull request #259 from Rangi42/master
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 |