aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index c822049c..b2819c3b 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.42 2000/03/02 12:32:53 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.43 2000/03/03 14:58:26 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*/
@@ -47,6 +47,11 @@
47#define SETARG_A(i,a) (((i)&0x0000FFFFu) | ((Instruction)(a)<<16)) 47#define SETARG_A(i,a) (((i)&0x0000FFFFu) | ((Instruction)(a)<<16))
48#define SETARG_B(i,b) (((i)&0xFFFF00FFu) | ((Instruction)(b)<<8)) 48#define SETARG_B(i,b) (((i)&0xFFFF00FFu) | ((Instruction)(b)<<8))
49 49
50#define CREATE_0(o) ((Instruction)(o))
51#define CREATE_U(o,u) ((Instruction)(o) | (Instruction)(u)<<8)
52#define CREATE_S(o,s) ((Instruction)(o) | ((Instruction)(s)+EXCESS_S)<<8)
53#define CREATE_AB(o,a,b) ((Instruction)(o) | ((Instruction)(a)<<16) \
54 | ((Instruction)(b)<<8))
50 55
51 56
52/* 57/*