aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-05-08 13:08:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-05-08 13:08:01 -0300
commitab5a6500296dbd847632ccc2fb43b44bba4c34f5 (patch)
tree7386ee557eb8cc4d35156d702182c2b8b7fa01a5 /lopcodes.h
parentfb9de1b4d77494d55c6e0c3c8e5c681dad36b49e (diff)
downloadlua-ab5a6500296dbd847632ccc2fb43b44bba4c34f5.tar.gz
lua-ab5a6500296dbd847632ccc2fb43b44bba4c34f5.tar.bz2
lua-ab5a6500296dbd847632ccc2fb43b44bba4c34f5.zip
details (direct access to 'Ck' bit in instructions)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 6c9df6f3..683f8928 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.152 2017/04/26 17:46:52 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.153 2017/04/28 20:57:45 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*/
@@ -106,6 +106,9 @@ enum OpMode {iABC, iABx, iAsBx, iAx}; /* basic instruction format */
106#define GETARG_C(i) getarg(i, POS_C, SIZE_C) 106#define GETARG_C(i) getarg(i, POS_C, SIZE_C)
107#define SETARG_C(i,v) setarg(i, v, POS_C, SIZE_C) 107#define SETARG_C(i,v) setarg(i, v, POS_C, SIZE_C)
108 108
109#define GETARG_Cr(i) getarg(i, POS_C, SIZE_C - 1)
110#define GETARG_Ck(i) getarg(i, (POS_C + SIZE_C - 1), 1)
111
109#define GETARG_Bx(i) getarg(i, POS_Bx, SIZE_Bx) 112#define GETARG_Bx(i) getarg(i, POS_Bx, SIZE_Bx)
110#define SETARG_Bx(i,v) setarg(i, v, POS_Bx, SIZE_Bx) 113#define SETARG_Bx(i,v) setarg(i, v, POS_Bx, SIZE_Bx)
111 114