aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 91c74759..d7548d9b 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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 */
122OP_SETLIST,/* A B v_b-v_0 t t t[i+a*FPF]=v_i */ 115OP_SETLIST,/* A B v_b-v_0 t t t[i+a*FPF]=v_i */
123OP_SETMAP,/* U v_u k_u - v_0 k_0 t t t[k_i]=v_i */ 116OP_SETMAP,/* U v_u k_u - v_0 k_0 t t t[k_i]=v_i */
124 117
125OP_INCLOCAL,/* sA L - - LOC[l]+=sA */
126OP_ADD,/* - y x x+y */ 118OP_ADD,/* - y x x+y */
127OP_ADDI,/* S x x+s */ 119OP_ADDI,/* S x x+s */
128OP_SUB,/* - y x x-y */ 120OP_SUB,/* - y x x-y */