diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-28 16:58:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-28 16:58:57 -0300 |
commit | 2a4afb97c8a3f64dccad86fa848855616ea2c254 (patch) | |
tree | e343fd15c387e6975b7a680130ee09735666ea2d /ldebug.h | |
parent | 87a5fae45322dde56306de92d8eb8050506fb9ba (diff) | |
download | lua-2a4afb97c8a3f64dccad86fa848855616ea2c254.tar.gz lua-2a4afb97c8a3f64dccad86fa848855616ea2c254.tar.bz2 lua-2a4afb97c8a3f64dccad86fa848855616ea2c254.zip |
new module lopcodes.c for tables describing opcodes
Diffstat (limited to 'ldebug.h')
-rw-r--r-- | ldebug.h | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.h,v 1.13 2001/06/06 17:50:36 roberto Exp roberto $ | 2 | ** $Id: ldebug.h,v 1.14 2001/06/11 14:56:42 roberto Exp roberto $ |
3 | ** Auxiliary functions from Debug Interface module | 3 | ** Auxiliary functions from Debug Interface module |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -12,25 +12,6 @@ | |||
12 | #include "luadebug.h" | 12 | #include "luadebug.h" |
13 | 13 | ||
14 | 14 | ||
15 | enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */ | ||
16 | |||
17 | /* | ||
18 | ** masks for instruction properties | ||
19 | */ | ||
20 | enum OpModeMask { | ||
21 | OpModeBreg = 2, /* B is a register */ | ||
22 | OpModeCreg, /* C is a register/constant */ | ||
23 | OpModesetA, /* instruction set register A */ | ||
24 | OpModeK, /* Bc is a constant */ | ||
25 | OpModeT /* operator is a test */ | ||
26 | }; | ||
27 | |||
28 | extern const lu_byte luaG_opmodes[]; | ||
29 | |||
30 | #define getOpMode(m) ((enum OpMode)(luaG_opmodes[m] & 3)) | ||
31 | #define testOpMode(m, b) (luaG_opmodes[m] & (1 << (b))) | ||
32 | |||
33 | |||
34 | void luaG_typeerror (lua_State *L, StkId o, const l_char *op); | 15 | void luaG_typeerror (lua_State *L, StkId o, const l_char *op); |
35 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); | 16 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
36 | void luaG_aritherror (lua_State *L, StkId p1, TObject *p2); | 17 | void luaG_aritherror (lua_State *L, StkId p1, TObject *p2); |