git-svn-id: http://bladebattles.com/kurok/SVN@11 20cd92bb-ff49-0410-b73e-96a06e42c3b9
[kurok.git] / block16.h
blobfacc932959683082504b5403d84313c8d058bff2
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 LEnter16_16:
21 movb (%esi),%al
22 movb (%esi,%ebx,),%cl
23 movb %dh,%ah
24 addl %ebp,%edx
25 movb %dh,%ch
26 leal (%esi,%ebx,2),%esi
27 movw 0x12345678(,%eax,2),%ax
28 LBPatch0:
29 addl %ebp,%edx
30 movw %ax,(%edi)
31 movw 0x12345678(,%ecx,2),%cx
32 LBPatch1:
33 movw %cx,2(%edi)
34 addl $0x4,%edi
36 movb (%esi),%al
37 movb (%esi,%ebx,),%cl
38 movb %dh,%ah
39 addl %ebp,%edx
40 movb %dh,%ch
41 leal (%esi,%ebx,2),%esi
42 movw 0x12345678(,%eax,2),%ax
43 LBPatch2:
44 addl %ebp,%edx
45 movw %ax,(%edi)
46 movw 0x12345678(,%ecx,2),%cx
47 LBPatch3:
48 movw %cx,2(%edi)
49 addl $0x4,%edi
51 movb (%esi),%al
52 movb (%esi,%ebx,),%cl
53 movb %dh,%ah
54 addl %ebp,%edx
55 movb %dh,%ch
56 leal (%esi,%ebx,2),%esi
57 movw 0x12345678(,%eax,2),%ax
58 LBPatch4:
59 addl %ebp,%edx
60 movw %ax,(%edi)
61 movw 0x12345678(,%ecx,2),%cx
62 LBPatch5:
63 movw %cx,2(%edi)
64 addl $0x4,%edi
66 movb (%esi),%al
67 movb (%esi,%ebx,),%cl
68 movb %dh,%ah
69 addl %ebp,%edx
70 movb %dh,%ch
71 leal (%esi,%ebx,2),%esi
72 movw 0x12345678(,%eax,2),%ax
73 LBPatch6:
74 addl %ebp,%edx
75 movw %ax,(%edi)
76 movw 0x12345678(,%ecx,2),%cx
77 LBPatch7:
78 movw %cx,2(%edi)
79 addl $0x4,%edi
81 LEnter8_16:
82 movb (%esi),%al
83 movb (%esi,%ebx,),%cl
84 movb %dh,%ah
85 addl %ebp,%edx
86 movb %dh,%ch
87 leal (%esi,%ebx,2),%esi
88 movw 0x12345678(,%eax,2),%ax
89 LBPatch8:
90 addl %ebp,%edx
91 movw %ax,(%edi)
92 movw 0x12345678(,%ecx,2),%cx
93 LBPatch9:
94 movw %cx,2(%edi)
95 addl $0x4,%edi
97 movb (%esi),%al
98 movb (%esi,%ebx,),%cl
99 movb %dh,%ah
100 addl %ebp,%edx
101 movb %dh,%ch
102 leal (%esi,%ebx,2),%esi
103 movw 0x12345678(,%eax,2),%ax
104 LBPatch10:
105 addl %ebp,%edx
106 movw %ax,(%edi)
107 movw 0x12345678(,%ecx,2),%cx
108 LBPatch11:
109 movw %cx,2(%edi)
110 addl $0x4,%edi
112 LEnter4_16:
113 movb (%esi),%al
114 movb (%esi,%ebx,),%cl
115 movb %dh,%ah
116 addl %ebp,%edx
117 movb %dh,%ch
118 leal (%esi,%ebx,2),%esi
119 movw 0x12345678(,%eax,2),%ax
120 LBPatch12:
121 addl %ebp,%edx
122 movw %ax,(%edi)
123 movw 0x12345678(,%ecx,2),%cx
124 LBPatch13:
125 movw %cx,2(%edi)
126 addl $0x4,%edi
128 LEnter2_16:
129 movb (%esi),%al
130 movb (%esi,%ebx,),%cl
131 movb %dh,%ah
132 addl %ebp,%edx
133 movb %dh,%ch
134 leal (%esi,%ebx,2),%esi
135 movw 0x12345678(,%eax,2),%ax
136 LBPatch14:
137 addl %ebp,%edx
138 movw %ax,(%edi)
139 movw 0x12345678(,%ecx,2),%cx
140 LBPatch15:
141 movw %cx,2(%edi)
142 addl $0x4,%edi