block16.h 2.8 KB

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