home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / kaffe-0.5p4-src.tgz / tar.out / contrib / kaffe / kaffevm / jit / ops.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  3KB  |  58 lines

  1. /* ops.h
  2.  *
  3.  * Opcode operand lengths and control flow status.
  4.  * Ideally this should be generated from kaffe.def (but isn't).
  5.  *
  6.  * Copyright (c) 1996 Systems Architecture Research Centre,
  7.  *           City University, London, UK.
  8.  *
  9.  * See the file "license.terms" for information on usage and redistribution
  10.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  11.  *
  12.  * Written by Tim Wilkinson <tim@sarc.city.ac.uk>, June 1996.
  13.  */
  14.  
  15. #ifndef __ops_h
  16. #define __ops_h
  17.  
  18. struct {
  19.     char jmp;
  20.     char len;
  21.     char stack;
  22. } opcodeInfo[256] = {
  23.     {0,1, 0},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},
  24.     {0,1, 1},{0,1, 2},{0,1, 2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},
  25.     {0,2, 1},{0,3, 1},{0,2, 1},{0,3, 1},{0,3, 2},{0,2, 1},{0,2, 2},{0,2, 1},
  26.     {0,2, 2},{0,2, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},
  27.     {0,1, 2},{0,1, 2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},
  28.     {0,1, 2},{0,1, 2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1,-1},{0,1, 0},
  29.     {0,1,-1},{0,1, 0},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,2,-1},{0,2,-2},
  30.     {0,2,-1},{0,2,-2},{0,2,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-2},
  31.     {0,1,-2},{0,1,-2},{0,1,-2},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-2},
  32.     {0,1,-2},{0,1,-2},{0,1,-2},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-3},
  33.     {0,1,-4},{0,1,-3},{0,1,-4},{0,1,-3},{0,1,-3},{0,1,-3},{0,1,-3},{0,1,-1},
  34.     {0,1,-2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},{0,1, 2},{0,1, 0},
  35.     {0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},
  36.     {0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},
  37.     {0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  38.     {0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-2},
  39.     {0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,3, 0},{0,1, 1},{0,1, 0},{0,1, 1},
  40.     {0,1,-1},{0,1,-1},{0,1, 0},{0,1, 0},{0,1, 1},{0,1, 1},{0,1,-1},{0,1, 0},
  41.     {0,1,-1},{0,1, 0},{0,1, 0},{0,1, 0},{0,1,-3},{0,1,-1},{0,1,-1},{0,1,-3},
  42.     {0,1,-3},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-2},
  43.     {1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{3,3, 0},
  44.     {1,3, 1},{2,2, 0},{3,0,-1},{3,0,-1},{2,1,-1},{2,1,-2},{2,1,-1},{2,1,-2},
  45.     {2,1,-1},{2,1, 0},{0,3, 9},{0,3, 9},{0,3, 9},{0,3, 9},{0,3, 9},{0,3, 9},
  46.     {0,3, 9},{0,5, 9},{0,1, 0},{0,3, 1},{0,2, 0},{0,3, 0},{0,1, 0},{2,1,-1},
  47.     {0,3, 0},{0,3, 0},{0,1,-1},{0,1,-1},{0,2, 0},{0,4, 9},{1,3,-1},{1,3,-1},
  48.     {3,5, 0},{1,5, 1},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  49.     {0,1, 0},{1,3, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  50.     {0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  51.     {0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  52.     {0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  53.     {0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  54.     {0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
  55. };
  56.  
  57. #endif
  58.