CH_MAC.INC 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. ; *** chara data macro ***
  2. CHT2 MACRO HIT,FLAG,TIME,NAME
  3. DC.B TIME,FLAG
  4. DC.W (NAME-*)+HIT*800H
  5. ENDM
  6. CNAME MACRO NAME
  7. XDEF \1
  8. \1:
  9. ENDM
  10. HIT MACRO X1,Y1,X2,Y2
  11. IFEQ NARG-3
  12. DC.B (X1)/2,(X2)/2,(Y1)/2,(Y1)/2
  13. ELSEC
  14. DC.B (X1)/2,(X2)/2,(Y1)/2,(Y2)/2
  15. ENDC
  16. ENDM
  17. CEND MACRO
  18. DC.W 8000H command 0*4
  19. ENDM
  20. CHGSUB MACRO No
  21. DC.W 8004H+No command 1*4
  22. ENDM
  23. RET_MASTER MACRO
  24. DC.W 8008H command 2*4
  25. ENDM
  26. BLINK MACRO
  27. DC.W 800CH command 3*4
  28. ENDM
  29. SUB0 MACRO MAX
  30. DC.W 8010H+MAX-1 command 4*4
  31. ENDM
  32. SUB1 MACRO MAX
  33. DC.W 8014H+MAX-1 command 5*4
  34. ENDM
  35. SUB2 MACRO MAX
  36. DC.W 8018H+MAX-1 command 6*4
  37. ENDM
  38. SUB3 MACRO MAX
  39. DC.W 801CH+MAX-1 command 7*4
  40. ENDM
  41. GOSUB MACRO ADRS
  42. DC.W 8020H command 8*4
  43. DC.W ADRS-2-*
  44. ENDM
  45. SUBSUB MACRO No,ADRS
  46. DC.W 8024H+No command 9*4
  47. DC.W ADRS-2-*
  48. ENDM
  49. RET MACRO
  50. DC.W 8028H command A*4
  51. ENDM
  52. SUBRET MACRO
  53. DC.W 802CH command B*4
  54. ENDM
  55. SKIP MACRO No,DATA
  56. ; command C,10*4
  57. ; skip data for main prog
  58. IFC \0,W
  59. DC.W 8030H+No*100H,DATA
  60. ELSEC
  61. DC.W 8034H+No*100H
  62. DC.L DATA
  63. ENDC
  64. ENDM
  65. SUB_OFF MACRO WORK,No,X,Y
  66. DC.W 8038H+WORK
  67. CN SET (0\2)*4
  68. CX SET X
  69. CY SET Y
  70. IFLT CX
  71. CN SET CN+1
  72. CX SET -CX
  73. ENDC
  74. IFLT CY
  75. CN SET CN+2
  76. CY SET -CY
  77. ENDC
  78. DC.W CN
  79. DC.B CY,CX
  80. ENDM
  81. PAL_OFF MACRO
  82. DC.W 803CH
  83. ENDM
  84. SUBP0 MACRO MAX,ADD
  85. DC.W 8040H+MAX*100H,ADD
  86. ENDM
  87. SUBP1 MACRO MAX,ADD
  88. DC.W 8044H+MAX*100H,ADD
  89. ENDM
  90. SUBP2 MACRO MAX,ADD
  91. DC.W 8048H+MAX*100H,ADD
  92. ENDM
  93. SUBP3 MACRO MAX,ADD
  94. DC.W 804CH+MAX*100H,ADD
  95. ENDM
  96. SOUND MACRO CODE
  97. DC.W 0C000H,CODE
  98. ENDM
  99. SPHERO MACRO CODE
  100. DC.W 0C004H,CODE
  101. ENDM
  102. FLIP MACRO
  103. DC.W 0C008H
  104. ENDM
  105. ACTAT MACRO AND,OR
  106. DC.W 0C00CH
  107. DC.B AND,OR
  108. ENDM
  109. BIG MACRO X,Y
  110. DC.W 0C010H
  111. DC.B X,Y
  112. ENDM
  113. USER MACRO No
  114. DC.W 0C014H+(No)*100H
  115. ENDM
  116. LOOP MACRO COUNT
  117. DC.W 0C018H+(COUNT-1)*100H
  118. ENDM
  119. ; No => tool_edit edit_no(character_no)
  120. ; X => that_character x_adrs_center_point
  121. ; neg((sprite_x_size*16/2))
  122. ; Y => that_character y_adrs_center_point
  123. CODE MACRO No,X,Y
  124. CN SET (0\1)*4
  125. CX SET X
  126. CY SET Y
  127. IFLT CX
  128. CN SET CN+1
  129. CX SET -CX
  130. ENDC
  131. IFLT CY
  132. CN SET CN+2
  133. CY SET -CY
  134. ENDC
  135. DC.W CN
  136. DC.B CY,CX
  137. ENDM
  138. ; *** for [044 ART OF FIGHT] ***
  139. FACE MACRO No1,No2,No3,X,Y
  140. SUB1 3
  141. CN SET 0
  142. CX SET X
  143. CY SET Y
  144. IFLT CX
  145. CN SET CN+1
  146. CX SET -CX
  147. ENDC
  148. IFLT CY
  149. CN SET CN+2
  150. CY SET -CY
  151. ENDC
  152. DC.W CN+(0\1)*4
  153. DC.B CY,CX
  154. DC.W CN+(0\2)*4
  155. DC.B CY,CX
  156. DC.W CN+(0\3)*4
  157. DC.B CY,CX
  158. ENDM
  159. UHIT MACRO X1,Y1,X2,Y2
  160. DC.W 0C014H
  161. DC.B (X1)/2,(X2)/2,(Y1)/2,(Y2)/2
  162. ENDM
  163. UHIT2 MACRO X1,Y1,X2,Y2
  164. DC.W 0CE14H
  165. DC.B (X1)/2,(X2)/2,(Y1)/2,(Y2)/2
  166. ENDM
  167. UHITD MACRO X1,Y1,X2,Y2
  168. DC.W 0C214H
  169. DC.B (X1)/2,(X2)/2,(Y1)/2,(Y2)/2
  170. ENDM
  171. UHITD2 MACRO X1,Y1,X2,Y2
  172. DC.B (X1)/2,(X2)/2,(Y1)/2,(Y2)/2
  173. ENDM
  174. UHIT_OFF MACRO
  175. DC.W 0C014H+100H
  176. ENDM
  177. JUMP MACRO TYPE,VZ,AZ,VX,AX
  178. DC.W 0C014H+400H+100H*TYPE
  179. DC.L VZ
  180. DC.W AZ,VX,AX
  181. ENDM
  182. JUMP3 MACRO VZ,AZ,VX,AX,VZ2,AZ2,VX2,AX2
  183. DC.W 0C014H+400H+300H
  184. DC.L VZ
  185. DC.W AZ,VX,AX
  186. DC.L VZ2
  187. DC.W AZ2,VX2,AX2
  188. ENDM
  189. JUMP4 MACRO VX
  190. DC.W 0C014H+1100H,VX
  191. ENDM
  192. JUMP_OFF MACRO
  193. DC.W 0C014H+1200H
  194. ENDM
  195. ;type 0 lever direction (normal jump)
  196. ;type 1 chara direction (triangle jump,damage jump,attack jump)
  197. ;type 2
  198. ;type 3
  199. NEXT MACRO NEXT_CODE
  200. DC.W 0C014H+800H
  201. DC.W C_\1
  202. ENDM
  203. NEXTS MACRO NEXT_CODE
  204. DC.W 0C014H+800H
  205. DC.W \1
  206. ENDM
  207. ADC MACRO COMMAND,VX,VY
  208. DC.W 0C014H+900H
  209. DC.W COMMAND,VX,VY
  210. ENDM
  211. KAGE MACRO No
  212. DC.W 0C014H+0B00H
  213. DC.W No-2
  214. ENDM
  215. BLOD MACRO X,Y,TYPE
  216. DC.W 0C014H+0C00H,X,Y,C_\3
  217. ENDM
  218. BLODS MACRO X,Y,TYPE
  219. DC.W 0C014H+0C00H,X,Y,TYPE
  220. ENDM
  221. MUNE MACRO No,X,Y
  222. ENDM
  223. ; DC.W 803AH
  224. ;CN SET (0\1)*4
  225. ;CX SET X
  226. ;CY SET Y
  227. ; IFLT CX
  228. ;CN SET CN+1
  229. ;CX SET -CX
  230. ; ENDC
  231. ; IFLT CY
  232. ;CN SET CN+2
  233. ;CY SET -CY
  234. ; ENDC
  235. ; DC.W CN
  236. ; DC.B CY,CX
  237. ; ENDM
  238. EFFECT MACRO C1,C2
  239. DC.W 0CF14H,C1,C2
  240. ENDM
  241. LANG_SOUND MACRO C1,C2
  242. DC.W 0C314H,C1,C2
  243. ENDM
  244. DEAD_SOUND MACRO C1,C2
  245. DC.W 0D014H,C1,C2
  246. ENDM
  247. RET100 MACRO No
  248. DC.W 0C014H+1300H,No
  249. ENDM
  250. RET100_OFF MACRO
  251. DC.W 0C014H+1400H
  252. ENDM
  253. HIT_LOCK_OFF MACRO
  254. DC.W 0C014H+1500H
  255. ENDM
  256. GETA MACRO X,Y,TYPE
  257. DC.W 0C014H+1600H,X,Y,TYPE
  258. ENDM
  259. MEGANE MACRO X,Y,TYPE
  260. DC.W 0C014H+1700H,X,Y,TYPE
  261. ENDM
  262.