From 2a4afb97c8a3f64dccad86fa848855616ea2c254 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 28 Jun 2001 16:58:57 -0300 Subject: new module lopcodes.c for tables describing opcodes --- ldebug.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index 678ef1ce..b1320301 100644 --- a/ldebug.h +++ b/ldebug.h @@ -1,5 +1,5 @@ /* -** $Id: ldebug.h,v 1.13 2001/06/06 17:50:36 roberto Exp roberto $ +** $Id: ldebug.h,v 1.14 2001/06/11 14:56:42 roberto Exp roberto $ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ @@ -12,25 +12,6 @@ #include "luadebug.h" -enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */ - -/* -** masks for instruction properties -*/ -enum OpModeMask { - OpModeBreg = 2, /* B is a register */ - OpModeCreg, /* C is a register/constant */ - OpModesetA, /* instruction set register A */ - OpModeK, /* Bc is a constant */ - OpModeT /* operator is a test */ -}; - -extern const lu_byte luaG_opmodes[]; - -#define getOpMode(m) ((enum OpMode)(luaG_opmodes[m] & 3)) -#define testOpMode(m, b) (luaG_opmodes[m] & (1 << (b))) - - void luaG_typeerror (lua_State *L, StkId o, const l_char *op); void luaG_concaterror (lua_State *L, StkId p1, StkId p2); void luaG_aritherror (lua_State *L, StkId p1, TObject *p2); -- cgit v1.2.3-55-g6feb