diff options
| author | yenatch <yenatch@gmail.com> | 2014-04-22 17:14:11 -0400 |
|---|---|---|
| committer | yenatch <yenatch@gmail.com> | 2014-04-22 17:14:11 -0400 |
| commit | 55b992916719834a6a932829699a4e9250527f5a (patch) | |
| tree | 93247b557e03bca9d83c2a88cf15bd7ffe5270b3 /macros.asm | |
| parent | Comment in-game trade evolution. (diff) | |
| download | pokeyellow-55b992916719834a6a932829699a4e9250527f5a.tar.gz pokeyellow-55b992916719834a6a932829699a4e9250527f5a.tar.xz pokeyellow-55b992916719834a6a932829699a4e9250527f5a.zip | |
Use callba/callab macros for cross-bank calls.
Diffstat (limited to 'macros.asm')
| -rw-r--r-- | macros.asm | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -11,6 +11,18 @@ page EQUS "db $49," ; Start a new Pokedex page. dex EQUS "db $5f, $50" ; End a Pokedex entry. +callba: MACRO + ld b, BANK(\1) + ld hl, \1 + call Bankswitch + ENDM + +callab: MACRO + ld hl, \1 + ld b, BANK(\1) + call Bankswitch + ENDM + ;\1 = X ;\2 = Y FuncCoord: MACRO |
