diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-06-16 15:49:17 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-06-16 15:49:17 -0400 |
commit | 356836b1cc479381d5494dbaee40c6a6345c0b43 (patch) | |
tree | 7708fda6f16a02264e9cc7d421f9ab6b050a64d4 /macros | |
parent | 437c7404e90dc7fb853b0c6c74a234cd2a2e3c56 (diff) |
Harmonize home/ with pokecrystal
Diffstat (limited to 'macros')
-rw-r--r-- | macros/data.asm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/macros/data.asm b/macros/data.asm index 36854d79..b6cedbf7 100644 --- a/macros/data.asm +++ b/macros/data.asm @@ -102,17 +102,17 @@ ENDM ; Reverses FixPicBank in engine/gfx/load_pics.asm ; -; Takes the actual bank of the pic in the ROM and returns the "defined" bank -; $1f -> $13 -; $20 -> $14 -; $2e -> $1f +; Takes the actual bank of the pic in the ROM and returns the "defined" bank: +; BANK("Pics 12") -> $13 +; BANK("Pics 13") -> $14 +; BANK("Pics 14") -> $1f ; ; Otherwise, the ROM bank will match the defined bank. dba_pic: MACRO ; dbw bank, address - db (BANK(\1) == $1f) * ($13 - $1f) \ - + (BANK(\1) == $20) * ($14 - $20) \ - + (BANK(\1) == $2e) * ($1f - $2e) \ - + (BANK(\1)) + db (BANK(\1) == BANK("Pics 12")) * ($13 - BANK("Pics 12")) \ + + (BANK(\1) == BANK("Pics 13")) * ($14 - BANK("Pics 13")) \ + + (BANK(\1) == BANK("Pics 14")) * ($1f - BANK("Pics 14")) \ + + (BANK(\1)) dw \1 ENDM @@ -128,6 +128,6 @@ sine_table: MACRO x = 0 rept \1 dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up -x = x + DIV(32768, \1); a circle has 65536 "degrees" +x = x + DIV(32768, \1) ; a circle has 65536 "degrees" endr ENDM |