fork(3) download
  1. DEF_PRED equ 29;
  2. DEF_PREY equ 89;
  3. DEF_ACTI equ 14;
  4. DEF_COMM equ 10;
  5.  
  6.  
  7. XOR EBX, EBX;
  8. PUSH EBX;
  9. PUSH @ctxt;
  10. PUSH DEF_COMM;
  11. PUSH @ytxt;
  12. PUSH DEF_PREY;
  13. PUSH @atxt;
  14. PUSH DEF_ACTI;
  15. PUSH @ptxt;
  16. PUSH DEF_PRED;
  17. PUSH @ytxt;
  18. PUSH DEF_PREY;
  19. PUSH @atxt;
  20. PUSH DEF_ACTI;
  21. PUSH @ptxt;
  22. PUSH DEF_PRED;
  23.  
  24.  
  25. MOV EBP, 08088405h;
  26. LEA EAX, [EBX + 13];
  27. INT 80h;
  28. INC EBX;
  29. MOV ESI, EAX;
  30. JMP @nget;
  31.  
  32. @loop:
  33. MUL EBP;
  34. INC EAX;
  35. MOV ESI, EAX;
  36. MUL ECX;
  37.  
  38. XOR EAX, EAX;
  39. LEA ECX, [EAX - 1];
  40. POP EDI;
  41.  
  42. @find:
  43. REPNE SCASB;
  44. DEC EDX;
  45. JGE @find;
  46.  
  47. MOV EDX, EDI;
  48. REPNE SCASB;
  49. MOV ECX, EDX;
  50. LEA EAX, [EBX + 3];
  51. LEA EDX, [EDI - 1];
  52. SUB EDX, ECX;
  53. INT 80h;
  54.  
  55. @nget:
  56. POP ECX;
  57. MOV EAX, ESI;
  58. TEST ECX, ECX;
  59. JNE @loop;
  60.  
  61. XOR EBX, EBX;
  62. LEA EAX, [EBX + 1];
  63. INT 80h;
  64.  
  65.  
  66. @ptxt:
  67. DB 0,\
  68. 0Ah, "Abelia", 0,\
  69. 0Ah, "Adelphailurus", 0,\
  70. 0Ah, "Dinofelis", 0,\
  71. 0Ah, "Dolichofelis", 0,\
  72. 0Ah, "Dromopanthera", 0,\
  73. 0Ah, "Hemimachairodus", 0,\
  74. 0Ah, "Homotherium", 0,\
  75. 0Ah, "Jansofelis", 0,\
  76. 0Ah, "Leontoceryx", 0,\
  77. 0Ah, "Lokotunjailurus", 0,\
  78. 0Ah, "Machairodus", 0,\
  79. 0Ah, "Megantereon", 0,\
  80. 0Ah, "Metailurus", 0,\
  81. 0Ah, "Miomachairodus", 0,\
  82. 0Ah, "Miracinonyx", 0,\
  83. 0Ah, "Nimravides", 0,\
  84. 0Ah, "Paramachairodus", 0,\
  85. 0Ah, "Pikermi", 0,\
  86. 0Ah, "Pratifelis", 0,\
  87. 0Ah, "Proailurus", 0,\
  88. 0Ah, "Pseudaelurus", 0,\
  89. 0Ah, "Schaubia", 0,\
  90. 0Ah, "Sivaelurus", 0,\
  91. 0Ah, "Sivapanthera", 0,\
  92. 0Ah, "Sivapardus", 0,\
  93. 0Ah, "Smilodon", 0,\
  94. 0Ah, "Viretailurus", 0,\
  95. 0Ah, "Vishnufelis", 0,\
  96. 0Ah, "Xenosmilus";
  97.  
  98. @ytxt:
  99. DB 0,\
  100. "Ambulocetus", 0,\
  101. "Amotherium", 0,\
  102. "Ampelomeryx", 0,\
  103. "Antilocapra", 0,\
  104. "Archaeohippus", 0,\
  105. "Basilosaurus", 0,\
  106. "Blastomeryx", 0,\
  107. "Bootherium", 0,\
  108. "Brachycrus", 0,\
  109. "Bubalus", 0,\
  110. "Capromeryx", 0,\
  111. "Ceratomeryx", 0,\
  112. "Cervalces", 0,\
  113. "Cormohipparion", 0,\
  114. "Cosoryx", 0,\
  115. "Cranioceras", 0,\
  116. "Dicrocerus", 0,\
  117. "Dorudon", 0,\
  118. "Elasmotherium", 0,\
  119. "Eotragus", 0,\
  120. "Eporeodon", 0,\
  121. "Euceratherium", 0,\
  122. "Eurygnathohippus", 0,\
  123. "Gandakasia", 0,\
  124. "Gazella", 0,\
  125. "Hayoceros", 0,\
  126. "Heteroprox", 0,\
  127. "Hexameryx", 0,\
  128. "Hexobelomeryx", 0,\
  129. "Himalayacetus", 0,\
  130. "Hipparion", 0,\
  131. "Hippidion", 0,\
  132. "Hippotherium", 0,\
  133. "Ichthyolestes", 0,\
  134. "Ilingoceros", 0,\
  135. "Iranotherium", 0,\
  136. "Kipsigicerus", 0,\
  137. "Kutchicetus", 0,\
  138. "Kyptoceras", 0,\
  139. "Leptauchenia", 0,\
  140. "Leptobos", 0,\
  141. "Libralces", 0,\
  142. "Longirostromeryx", 0,\
  143. "Megalotragus", 0,\
  144. "Menoceras", 0,\
  145. "Meryceros", 0,\
  146. "Merychippus", 0,\
  147. "Merycodus", 0,\
  148. "Merycoidodon", 0,\
  149. "Mesohippus", 0,\
  150. "Mesoreodon", 0,\
  151. "Miniochoerus", 0,\
  152. "Miohippus", 0,\
  153. "Nalacetus", 0,\
  154. "Navahoceros", 0,\
  155. "Odocoileus", 0,\
  156. "Orohippus", 0,\
  157. "Osbornoceros", 0,\
  158. "Ottoceros", 0,\
  159. "Pakicetus", 0,\
  160. "Palaeotragus", 0,\
  161. "Paracosoryx", 0,\
  162. "Parahippus", 0,\
  163. "Parmularius", 0,\
  164. "Pediomeryx", 0,\
  165. "Pelorovis", 0,\
  166. "Plioceros", 0,\
  167. "Pliohippus", 0,\
  168. "Proantilocapra", 0,\
  169. "Promerycochoerus", 0,\
  170. "Protoceras", 0,\
  171. "Protocetus", 0,\
  172. "Pseudoprotoceras", 0,\
  173. "Ramoceros", 0,\
  174. "Rodhocetus", 0,\
  175. "Samotherium", 0,\
  176. "Scaphohippus", 0,\
  177. "Sespia", 0,\
  178. "Sinotherium", 0,\
  179. "Sivatherium", 0,\
  180. "Sphenophalos", 0,\
  181. "Stockoceros", 0,\
  182. "Submeryceros", 0,\
  183. "Syndyoceras", 0,\
  184. "Synthetoceras", 0,\
  185. "Tetrameryx", 0,\
  186. "Texoceros", 0,\
  187. "Triceromeryx", 0,\
  188. "Zygorhiza";
  189.  
  190. @atxt:
  191. DB 0,\
  192. " preys on ", 0,\
  193. " is struck by ", 0,\
  194. " stalks ", 0,\
  195. " feasts on ", 0,\
  196. " gets pwned by ", 0,\
  197. " outwits ", 0,\
  198. " is outwitted by ", 0,\
  199. " is confused by ", 0,\
  200. " dislikes the taste of ", 0,\
  201. " chases ", 0,\
  202. " contributes to extinction of ", 0,\
  203. " is driven away by ", 0,\
  204. " smells ", 0,\
  205. " tracks ";
  206.  
  207. @ctxt:
  208. DB 0,\
  209. 0Ah, "but I smell an epoch mismatch.", 0,\
  210. 0Ah, "what if the predator bit more than it can chew?", 0,\
  211. 0Ah, "and life on Earth evolves as planned.", 0,\
  212. 0Ah, "too bad they are both extinct.", 0,\
  213. 0Ah, "have pity on the poor herbivore.", 0,\
  214. 0Ah, "but all are beaten by survival of the strongest", 0,\
  215. 0Ah, "and what are YOU doing reading this?", 0,\
  216. 0Ah, "but you don't have any idea what those animals look like anyway.", 0,\
  217. 0Ah, "a long time ago, in your galaxy and on your planet...", 0,\
  218. 0Ah, "oh my gosh.", 0;
  219.  
Success #stdin #stdout 0.02s 140KB
stdin
Standard input is empty
stdout
Sivapardus chases Cranioceras
Leontoceryx is driven away by Navahoceros
have pity on the poor herbivore.