EM_MAC.INC 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. ; enemy action_data macro
  2. ;
  3. ;
  4. ; * normal & sub command
  5. ;
  6. ; *total size 'n'
  7. T1_ACT MACRO
  8. DC.B 01H
  9. ENDM
  10. ;
  11. ; lever or command data repeat
  12. ;
  13. T1_CHG0 MACRO DIS,LEVER1,TIMER1
  14. DC.B 0F0H,00H
  15. DC.B TIMER1,LEVER1,DIS
  16. ENDM
  17. ;
  18. ; lever or command data timer only
  19. ;
  20. T1_CHG1 MACRO TIMER,LEVER1
  21. DC.B 0F0H,01H
  22. DC.B TIMER,LEVER1
  23. ENDM
  24. ;
  25. ; player state or distance_mode seach
  26. ;
  27. T1_CHG2 MACRO DIS,STA,DS_S,DS_F,LEVER,TIMER
  28. DC.B 0F0H,02H
  29. DC.B DIS,STA
  30. DC.B DS_S,DS_F
  31. DC.B TIMER,LEVER
  32. ENDM
  33. ;
  34. ; distance_mode only searching
  35. ;
  36. T1_CHG3 MACRO DIS,LEVER,TIMER
  37. DC.B 0F0H,03H
  38. DC.B DIS
  39. DC.B TIMER,LEVER
  40. ENDM
  41. ;
  42. ; search dot between from player to enemy
  43. ;
  44. T1_CHG4 MACRO DOT,LEVER,TIMER
  45. DC.B 0F0H,04H
  46. DC.B TIMER,LEVER
  47. DC.B DOT
  48. ENDM
  49. ;
  50. ; search dor between from player to enemy part 2
  51. ;
  52. T1_CHG5 MACRO DOT1,DOT2,LEVER,TIMER
  53. DC.B 0F0H,05H
  54. DC.B TIMER,LEVER
  55. DC.B DOT2,DOT1
  56. ENDM
  57. ;
  58. ; defence program setting command
  59. ;
  60. T1_CHG6 MACRO TIMER,LEVER
  61. DC.B 0F0H,06H
  62. DC.B TIMER,LEVER
  63. ENDM
  64. ;
  65. ; sankaku program setting command
  66. ;
  67. T1_CHG7 MACRO
  68. DC.B 0F0H,07H
  69. ENDM
  70. ;
  71. ; kiryoku power_on setting command
  72. ;
  73. T1_CHG8 MACRO DIS,TIMER
  74. DC.B 0F0H,08h
  75. DC.B DIS,TIMER
  76. ENDM
  77. ;
  78. ; player state or distance_mode seach
  79. ;
  80. T2_ACT MACRO DIS,STA,DS_S,DS_F,LEVER,TIMER
  81. DC.B 02H
  82. DC.B DIS,STA
  83. DC.B DS_S,DS_F
  84. DC.B TIMER,LEVER
  85. ENDM
  86. ;
  87. ; *only distance_search
  88. ;
  89. T3_ACT MACRO DIS,LEVER,TIMER
  90. DC.B 03H
  91. DC.B DIS
  92. DC.B TIMER,LEVER
  93. ENDM
  94. ;
  95. ; distance_mode only searching
  96. ;
  97. T4_ACT MACRO DOT,LEVER,TIMER
  98. DC.B 04H
  99. DC.B TIMER,LEVER
  100. DC.B DOT
  101. ENDM
  102. ;
  103. ; search dot between from player to enemy
  104. ;
  105. T5_ACT MACRO DOT1,DOT2,LEVER,TIMER
  106. DC.B 05H
  107. DC.B TIMER,LEVER
  108. DC.B DOT2,DOT1
  109. ENDM
  110. ;
  111. ; defence program setting command
  112. ;
  113. T6_ACT MACRO TIMER,LEVER
  114. DC.B 06h
  115. DC.B TIMER,LEVER
  116. ENDM
  117. ;
  118. ; sankaku_geri setting command
  119. ;
  120. T7_ACT MACRO
  121. DC.B 07h
  122. ENDM
  123. ACT_END MACRO
  124. DC.B 0FFH
  125. ENDM
  126. ACT_TBL_MAX MACRO NUM
  127. DC.W NUM-1
  128. ENDM
  129. STATE1 MACRO T1,T2,T3,T4
  130. DC.B T1,T2,T3,T4
  131. ENDM
  132. STATE2 MACRO T1
  133. DC.B 00
  134. DC.B T1
  135. ENDM
  136. TYPE MACRO T1,T2
  137. ; DC.W T1,T2
  138. DC.W T1
  139. ENDM
  140. ;
  141. ; *********** common macro inculde file ***************
  142. ;
  143. DSP_T1 MACRO TBL1
  144. DC.W (TBL1-*)
  145. ENDM
  146. DSP_T2 MACRO TBL1,TBL2
  147. DC.W (TBL1-*)
  148. DC.W (TBL2-*)
  149. ENDM
  150. DSP_T4 MACRO TBL1,TBL2,TBL3,TBL4
  151. DC.W (TBL1-*)
  152. DC.W (TBL2-*)
  153. DC.W (TBL3-*)
  154. DC.W (TBL4-*)
  155. ENDM
  156. DSP_S1 MACRO TBL1
  157. DC.B (TBL1-*)
  158. ENDM
  159. DSP_S4 MACRO TBL1,TBL2,TBL3,TBL4
  160. DC.B (TBL1-*)
  161. DC.B (TBL2-*)
  162. DC.B (TBL3-*)
  163. DC.B (TBL4-*)
  164. ENDM
  165. DM0 EQU 0
  166. DM1 EQU 1
  167. DM2 EQU 2
  168. DM3 EQU 3
  169. ;
  170. ; enemy_action standard action
  171. ;
  172. NACT EQU 00H
  173. DOWN EQU 02H
  174. FRONT_WALK EQU 08H
  175. BACK_WALK EQU 04H
  176. V_JUMP EQU 01H
  177. FRONT_JUMP EQU 01H+08H
  178. BACK_JUMP EQU 01H+04H
  179. JUMP_PUNCH EQU 01H+10H
  180. JUMP_KICK EQU 01H+20H
  181. DOWN_PUNCH EQU 02H+10H
  182. DOWN_KICK EQU 02H+20H
  183. FDASH EQU 04H+80H
  184. BDASH EQU 05H+80H
  185. PUNCH EQU 10H
  186. KICK EQU 20H
  187. KIRYOKU EQU 19H+80H
  188. CHOHATSU EQU 80H
  189. UP_GARD EQU 14h+80h
  190. DOWN_GARD EQU 08h+80h
  191. ;*******************************************************************
  192. L_DATA MACRO DATA1,DATA2
  193. DC.L DATA1*1000H,DATA2*1000H
  194. ENDM
  195. SYS_LABEL MACRO DATA1
  196. DC.W DATA1
  197. ENDM
  198. XZ_POSITION MACRO DATA1,DATA2
  199. DC.W DATA1,DATA2
  200. ENDM
  201. XYZ_POSITION MACRO DATA1,DATA2,DATA3
  202. DC.W DATA1,DATA2,DATA3
  203. ENDM
  204. OBJNO_PRI MACRO DATA1,DATA2
  205. IFC \1,'OBJ1'
  206. DC.W DATA2+0
  207. ELSEC
  208. IFC \1,'OBJ2'
  209. DC.W DATA2+128
  210. ELSEC
  211. IFC \1,'OBJ3'
  212. DC.W DATA2+192
  213. ELSEC
  214. DC.W DATA2+0
  215. ENDC
  216. ENDC
  217. ENDC
  218. ENDM
  219. PNO_ACTNO MACRO DATA1,DATA2
  220. DC.W DATA1,DATA2
  221. ENDM
  222. VX_VZ MACRO DATA1,DATA2
  223. DC.L DATA1*1000H,DATA2*1000H
  224. ENDM
  225. HIT_BIT MACRO DATA1,DATA2
  226. DC.B DATA1,DATA2
  227. ENDM
  228. COM_END MACRO
  229. DC.W 0
  230. ENDM
  231.