-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcyd_macros.s
115 lines (73 loc) · 961 Bytes
/
cyd_macros.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
; helper macros for CyD music data
if !_cyd_macros_s
_cyd_macros_s equ 1
_silence macro
fcb silence,\1
endm
_rest macro
fcb rest,\1
endm
_setnote macro
fcb setnote,\1,\2
endm
_setpatch macro
fcb setpatch,\1
endm
_setport macro
if ((\1 < -128) || (\1 > 127))
fcb setport16
fdb \1
else
fcb setport,\1
endif
endm
;_setport16 macro
; fcb setport16
; fdb \1
; endm
_settp macro
fcb settp,\1
endm
_loop macro
fcb loop,\1
endm
_next macro
fcb next
endm
_jump macro
fcb jump
fdb \1
endm
_call macro
fcb call
fdb \1
endm
_calltp macro
fcb calltp,\1
fdb \2
endm
_return macro
fcb return
endm
_setarp macro
fcb setarp,\1
fdb \2
endm
_clrarp macro
fcb clrarp
endm
_startsmp macro
fcb startsmp,\1,\2
endm
_setplscfg macro
fcb setplscfg,\1,\2,\3
endm
_setplsduty macro
fcb setplsduty,\1,\2
endm
_portamento macro
_setport 0.5+(\3-\2)/(\4)
fcb \1,\4
_setport 0
endm
endif