home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / xplatfrm / tierra / arginst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-26  |  1.5 KB  |  62 lines

  1. /* arginst.h  8-10-91  Artificial Life simulator setup routines */
  2.  
  3. #include "license.h"
  4.  
  5. /*
  6. #ifndef lint
  7. static char sccsid[] = "%W%    %G%";
  8. #endif
  9. */
  10.  
  11. #ifndef ARGINST_H
  12. #define ARGINST_H
  13.  
  14. I32s  GeneBnker = 1; /* turn genebanker on and off */
  15. I32s  RateMut = 2000; /* mutation rate control by raw rate, ("cosmic ray") */
  16. I32s  RateMovMut = 2000; /* mut rate control by raw rate, (copy mutation) */
  17. I32s  RateFlaw = 2000; /* flaw control by raw rate */
  18. I32s  NumCells = 1; /* # of creatures and gaps used to inoculate new soup */
  19.  
  20. /* the aid[INSTNUM] array is created by editing the id[INSTNUM] array
  21.    in soup_in.h */
  22.  
  23. #if INST == 1
  24.  
  25. struct ArgInstDef  aid[INSTNUM] =
  26.     {{ 0x00, "nop_0" },
  27.      { 0x01, "nop_1" },
  28.      { 0x02, "or1" },
  29.      { 0x03, "shl" },
  30.      { 0x04, "zero" },
  31.      { 0x05, "if_cz" },
  32.      { 0x06, "sub_ab" },
  33.      { 0x07, "sub_ac" },
  34.      { 0x08, "inc_a" },
  35.      { 0x09, "inc_b" },
  36.      { 0x0a, "dec_c" },
  37.      { 0x0b, "inc_c" },
  38.      { 0x0c, "push_ax" },
  39.      { 0x0d, "push_bx" },
  40.      { 0x0e, "push_cx" },
  41.      { 0x0f, "push_dx" },
  42.      { 0x10, "pop_ax" },
  43.      { 0x11, "pop_bx" },
  44.      { 0x12, "pop_cx" },
  45.      { 0x13, "pop_dx" },
  46.      { 0x14, "jmp" },
  47.      { 0x15, "jmpb" },
  48.      { 0x16, "call" },
  49.      { 0x17, "ret" },
  50.      { 0x18, "mov_cd" },
  51.      { 0x19, "mov_ab" },
  52.      { 0x1a, "mov_iab" },
  53.      { 0x1b, "adr" },
  54.      { 0x1c, "adrb" },
  55.      { 0x1d, "adrf" },
  56.      { 0x1e, "mal" },
  57.      { 0x1f, "divide" }};
  58.  
  59. #endif /* INST == 1 */
  60.  
  61. #endif
  62.