diff options
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.56 2000/04/07 19:35:31 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.57 2000/04/12 18:57:19 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -36,8 +36,6 @@ | |||
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | #define MAXARG_sA (MAXARG_A>>1) /* max value for a signed A */ | ||
40 | |||
41 | 39 | ||
42 | /* creates a mask with `n' 1 bits at position `p' */ | 40 | /* creates a mask with `n' 1 bits at position `p' */ |
43 | #define MASK1(n,p) ((~((~(Instruction)0)<<n))<<p) | 41 | #define MASK1(n,p) ((~((~(Instruction)0)<<n))<<p) |
@@ -73,11 +71,6 @@ | |||
73 | ((Instruction)(b)<<POS_B))) | 71 | ((Instruction)(b)<<POS_B))) |
74 | 72 | ||
75 | 73 | ||
76 | #define CREATE_sAB(o,a,b) (CREATE_AB((o),(a)+MAXARG_sA,(b))) | ||
77 | #define GETARG_sA(i) (GETARG_A(i)-MAXARG_sA) | ||
78 | |||
79 | |||
80 | |||
81 | /* | 74 | /* |
82 | ** K = U argument used as index to `kstr' | 75 | ** K = U argument used as index to `kstr' |
83 | ** J = S argument used as jump offset (relative to pc of next instruction) | 76 | ** J = S argument used as jump offset (relative to pc of next instruction) |
@@ -122,7 +115,6 @@ OP_SETTABLE,/* A B v a_a-a_1 i t (pops b values) t[i]=v */ | |||
122 | OP_SETLIST,/* A B v_b-v_0 t t t[i+a*FPF]=v_i */ | 115 | OP_SETLIST,/* A B v_b-v_0 t t t[i+a*FPF]=v_i */ |
123 | OP_SETMAP,/* U v_u k_u - v_0 k_0 t t t[k_i]=v_i */ | 116 | OP_SETMAP,/* U v_u k_u - v_0 k_0 t t t[k_i]=v_i */ |
124 | 117 | ||
125 | OP_INCLOCAL,/* sA L - - LOC[l]+=sA */ | ||
126 | OP_ADD,/* - y x x+y */ | 118 | OP_ADD,/* - y x x+y */ |
127 | OP_ADDI,/* S x x+s */ | 119 | OP_ADDI,/* S x x+s */ |
128 | OP_SUB,/* - y x x-y */ | 120 | OP_SUB,/* - y x x-y */ |