You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
rework note macro
This commit is contained in:
19
macros.asm
19
macros.asm
@@ -51,10 +51,27 @@ RGB: MACRO
|
|||||||
dw ((\3 << 10) | (\2 << 5) | (\1))
|
dw ((\3 << 10) | (\2 << 5) | (\1))
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
|
||||||
note: MACRO
|
note: MACRO
|
||||||
db \1
|
db \1 << 4 + \2
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
; pitch
|
||||||
|
__ EQU 0
|
||||||
|
C_ EQU 1
|
||||||
|
C# EQU 2
|
||||||
|
D_ EQU 3
|
||||||
|
D# EQU 4
|
||||||
|
E_ EQU 5
|
||||||
|
F_ EQU 6
|
||||||
|
F# EQU 7
|
||||||
|
G_ EQU 8
|
||||||
|
G# EQU 9
|
||||||
|
A_ EQU 10
|
||||||
|
A# EQU 11
|
||||||
|
B_ EQU 12
|
||||||
|
|
||||||
|
|
||||||
; It's better to use *coord than FuncCoord.
|
; It's better to use *coord than FuncCoord.
|
||||||
FuncCoord: MACRO
|
FuncCoord: MACRO
|
||||||
Coord = $c4a0 + 20 * \2 + \1
|
Coord = $c4a0 + 20 * \2 + \1
|
||||||
|
Reference in New Issue
Block a user