pokecarde/battle-e/berries/macros.asm
2014-11-21 10:46:12 +00:00

37 lines
499 B
NASM
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

RGB: MACRO
dw \1 | (\2 << 5) | (\3 << 10)
ENDM
Berry: MACRO
Section "berry",ROM0[$100]
db \1
REPT 7 - STRLEN(\1)
db $FF
ENDR
ENDM
; firmness
VERY_SOFT EQU 1
SOFT EQU 2
HARD EQU 3
VERY_HARD EQU 4
SUPER_HARD EQU 5
Yield_Range: MACRO
db \2, \1
ENDM
Size: MACRO
dw \1 * 10 + \2
ENDM
; this cant be used because RGBDS has no reliable way of putting null bytes in strings
;Tag_Text: MACRO
; db \1
; db $FF
; REPT 44 - STRLEN(\1)
; db 0
; ENDR
; ENDM
Tag_Text EQUS "db"