-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGETUP.ASM
executable file
·190 lines (165 loc) · 3.53 KB
/
GETUP.ASM
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
**************************************************************
*
* Software: Jamie Rivett
* Initiated: 5/1/94
*
* COPYRIGHT (C) 1992 WILLIAMS ELECTRONICS GAMES, INC.
*
**************************************************************
.file "getup.asm"
.title "getup time tables"
.width 132
.option b,d,l,t
.mnolist
.include "macros.h"
.include "mproc.equ"
.include "sys.equ"
.include "plyr.equ"
.include "game.equ"
.REF MAYBE_GIDDUP
#*****************************************************************************
* WRESTLER HAS JUST BEEN HIT
*
* a10 = * offensive process (attacker)
* a13 = * defensive process (victim)
SUBR set_getup_time
PUSH a0,a1,A8
move *a13(GETUP_TIME),a14
jrnz #out
move *a10(ATTACK_MODE),a0 ;type of attack that hit
X64 a0
addi #hit_table,a0
MOVE A0,A8
move *a0,a0,L
move *a13(WRESTLERNUM),a1
X16 a1
add a1,a0
move *a0,a0
move a0,*a13(GETUP_TIME)
move *a13(DELAY_METER),A0
JRNZ #out
MOVE *A8(020H),A0,L
JRZ #out
CALL A0
#out PULL a0,a1,A8
rets
#hit_table
.long _punch,0 ;0
.long _hdbutt,0 ;1
.long _kick,MAYBE_GIDDUP ;2
.long _flykick,MAYBE_GIDDUP ;3
.long _grabthrow,0 ;4
.long _uprcut,MAYBE_GIDDUP ;5
.long _lbowdrop,0 ;6
.long _grabhold,0 ;7
.long _grabfling,0 ;8
.long _push,0 ;9
.long _hiptoss,MAYBE_GIDDUP ;10
.long _bigboot,MAYBE_GIDDUP ;11
.long _knee,0 ;12
.long _grapple,0 ;13
.long _superpunch,0 ;14
.long _stomp,0 ;15
.long _spinkick,0 ;16
.long _cline,MAYBE_GIDDUP ;17
.long _headhold,0 ;18
.long _jumpkick,0 ;19
.long _run,0 ;20
.long _puppet,0 ;21
.long _backhand,0 ;22
.long _buzz,0 ;23
.long _haymaker,0 ;24
.long _blbowdrop,MAYBE_GIDDUP ;25
.long _bstomp,MAYBE_GIDDUP ;26
.long _headknees,0 ;27
.long _earslap,0 ;28
.long _hammer,MAYBE_GIDDUP ;29
.long _buttstomp,0 ;30
.long _null,0 ;31
.long _null,0 ;32
.long _tomb,0 ;33
.long _bigknee,MAYBE_GIDDUP ;34
.long _shnbfkik,0 ;35
.long _shnspdkik,0 ;36
.long _shnspdkik2,MAYBE_GIDDUP ;37
.long _null,0 ;38
.long _armbreak,MAYBE_GIDDUP ;39
.long _buttdrop,0 ;40
.long _null,0 ;41
.long _null,0 ;42
.long _null,0 ;43
.long _null,0 ;44
.long _null,0 ;45
.long _null,0 ;46
.long _null,0 ;47
#************************
;DEFAULT
_null
; .word 1,1,1,1,1,1,1,1,1,1 ;get right back up
.word 0,0,0,0,0,0,0,0,0,0 ;get right back up
#************************
_punch
_hdbutt
_kick
_grabthrow
_uprcut
_lbowdrop
_grabhold
_grabfling
_push
_knee
_grapple
_superpunch
_stomp
_buttstomp
_spinkick
_cline
_headhold
_jumpkick
_run
_puppet
_backhand
_buzz
_haymaker
_blbowdrop
_bstomp
_headknees
_earslap
_hammer
_tomb
_shnbfkik
_shnspdkik
_shnspdkik2
_armbreak
_buttdrop
.word 000 ;0 (Bret)
.word 000 ;1 (Razor)
.word 000 ;2 (Taker)
.word 000 ;3 (Yoko)
.word 000 ;4 (Shawn)
.word 000 ;5 (Bam Bam)
.word 000 ;6 (Doink)
.word 000 ;7 (Adam)
.word 000 ;8 (Lex)
.word 000 ;9 (Referee)
#************************
;AMODE_FLYKICK 3
;AMODE_HIPTOSS 10
;AMODE_BIGBOOT 11
_hiptoss
_bigboot
_flykick
_bigknee
.word STAY_TIME ;0 (Bret)
.word STAY_TIME ;1 (Razor)
.word STAY_TIME ;2 (Taker)
.word STAY_TIME ;3 (Yoko)
.word STAY_TIME ;4 (Shawn)
.word STAY_TIME ;5 (Bam Bam)
.word STAY_TIME ;6 (Doink)
.word STAY_TIME ;7 (Adam)
.word STAY_TIME ;8 (Lex)
.word STAY_TIME ;9 (Referee)
******************************************************************************
.end