aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-11-18 14:54:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-11-18 14:54:06 -0300
commit5f83fb658206d195e54d3574b989ce5285a5b18f (patch)
tree2049d60a21ae33407c13c5e8452b539ae250b2f2 /lopcodes.h
parent679dc72c08a7c563a0c3f463332d6f22d573a106 (diff)
downloadlua-5f83fb658206d195e54d3574b989ce5285a5b18f.tar.gz
lua-5f83fb658206d195e54d3574b989ce5285a5b18f.tar.bz2
lua-5f83fb658206d195e54d3574b989ce5285a5b18f.zip
Details
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lopcodes.h b/lopcodes.h
index dbef6a65..382dec05 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -19,7 +19,7 @@
19 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 19 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
20iABC C(8) | B(8) |k| A(8) | Op(7) | 20iABC C(8) | B(8) |k| A(8) | Op(7) |
21iABx Bx(17) | A(8) | Op(7) | 21iABx Bx(17) | A(8) | Op(7) |
22iAsB sBx (signed)(17) | A(8) | Op(7) | 22iAsBx sBx (signed)(17) | A(8) | Op(7) |
23iAx Ax(25) | Op(7) | 23iAx Ax(25) | Op(7) |
24isJ sJ(25) | Op(7) | 24isJ sJ(25) | Op(7) |
25 25
@@ -133,7 +133,7 @@ enum OpMode {iABC, iABx, iAsBx, iAx, isJ}; /* basic instruction formats */
133#define GETARG_sC(i) sC2int(GETARG_C(i)) 133#define GETARG_sC(i) sC2int(GETARG_C(i))
134#define SETARG_C(i,v) setarg(i, v, POS_C, SIZE_C) 134#define SETARG_C(i,v) setarg(i, v, POS_C, SIZE_C)
135 135
136#define TESTARG_k(i) (cast_int(((i) & (1u << POS_k)))) 136#define TESTARG_k(i) check_exp(checkopm(i, iABC), (cast_int(((i) & (1u << POS_k)))))
137#define GETARG_k(i) check_exp(checkopm(i, iABC), getarg(i, POS_k, 1)) 137#define GETARG_k(i) check_exp(checkopm(i, iABC), getarg(i, POS_k, 1))
138#define SETARG_k(i,v) setarg(i, v, POS_k, 1) 138#define SETARG_k(i,v) setarg(i, v, POS_k, 1)
139 139