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 >
Wrap
C/C++ Source or Header
|
1996-09-28
|
3KB
|
58 lines
/* ops.h
*
* Opcode operand lengths and control flow status.
* Ideally this should be generated from kaffe.def (but isn't).
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, June 1996.
*/
#ifndef __ops_h
#define __ops_h
struct {
char jmp;
char len;
char stack;
} opcodeInfo[256] = {
{0,1, 0},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},
{0,1, 1},{0,1, 2},{0,1, 2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},
{0,2, 1},{0,3, 1},{0,2, 1},{0,3, 1},{0,3, 2},{0,2, 1},{0,2, 2},{0,2, 1},
{0,2, 2},{0,2, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},
{0,1, 2},{0,1, 2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},
{0,1, 2},{0,1, 2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 1},{0,1,-1},{0,1, 0},
{0,1,-1},{0,1, 0},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,2,-1},{0,2,-2},
{0,2,-1},{0,2,-2},{0,2,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-2},
{0,1,-2},{0,1,-2},{0,1,-2},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-2},
{0,1,-2},{0,1,-2},{0,1,-2},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-3},
{0,1,-4},{0,1,-3},{0,1,-4},{0,1,-3},{0,1,-3},{0,1,-3},{0,1,-3},{0,1,-1},
{0,1,-2},{0,1, 1},{0,1, 1},{0,1, 1},{0,1, 2},{0,1, 2},{0,1, 2},{0,1, 0},
{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},
{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},
{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-1},{0,1,-2},
{0,1,-1},{0,1,-2},{0,1,-1},{0,1,-2},{0,3, 0},{0,1, 1},{0,1, 0},{0,1, 1},
{0,1,-1},{0,1,-1},{0,1, 0},{0,1, 0},{0,1, 1},{0,1, 1},{0,1,-1},{0,1, 0},
{0,1,-1},{0,1, 0},{0,1, 0},{0,1, 0},{0,1,-3},{0,1,-1},{0,1,-1},{0,1,-3},
{0,1,-3},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-1},{1,3,-2},
{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{1,3,-2},{3,3, 0},
{1,3, 1},{2,2, 0},{3,0,-1},{3,0,-1},{2,1,-1},{2,1,-2},{2,1,-1},{2,1,-2},
{2,1,-1},{2,1, 0},{0,3, 9},{0,3, 9},{0,3, 9},{0,3, 9},{0,3, 9},{0,3, 9},
{0,3, 9},{0,5, 9},{0,1, 0},{0,3, 1},{0,2, 0},{0,3, 0},{0,1, 0},{2,1,-1},
{0,3, 0},{0,3, 0},{0,1,-1},{0,1,-1},{0,2, 0},{0,4, 9},{1,3,-1},{1,3,-1},
{3,5, 0},{1,5, 1},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1, 0},{1,3, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},{0,1, 0},
};
#endif