summaryrefslogtreecommitdiffhomepage
path: root/src/opcode.h
diff options
context:
space:
mode:
authorcrimsonwoods <[email protected]>2013-03-21 23:07:18 +0900
committercrimsonwoods <[email protected]>2013-03-21 23:07:18 +0900
commitf4b943771881b01b40b34ca38ccdd62bb5eaaa66 (patch)
tree1712b58b3ad838ce860705d7e7df61994470899e /src/opcode.h
parentcc4e9ee5b65e5f35b7517e19dce5a5c62e0b2250 (diff)
downloadmruby-f4b943771881b01b40b34ca38ccdd62bb5eaaa66.tar.gz
mruby-f4b943771881b01b40b34ca38ccdd62bb5eaaa66.zip
fix comment.
Diffstat (limited to 'src/opcode.h')
-rw-r--r--src/opcode.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/opcode.h b/src/opcode.h
index 6b2288d48..8678ef73d 100644
--- a/src/opcode.h
+++ b/src/opcode.h
@@ -10,9 +10,12 @@
#define MAXARG_Bx (0xffff)
#define MAXARG_sBx (MAXARG_Bx>>1) /* `sBx' is signed */
-/* instructions OP:A:B:C = 7:9:9:7 (32 bits) */
-/* OP:A:Bx = 7:9:16 */
-/* OP:Ax = 7:25 */
+/* instructions: packed 32 bit */
+/* ------------------------------- */
+/* A:B:C:OP = 9: 9: 7: 7 */
+/* A:Bx:OP = 9:16: 7 */
+/* Ax:OP = 25: 7 */
+/* A:Bz:Cz:OP = 9:14: 2: 7 */
#define GET_OPCODE(i) ((int)(((mrb_code)(i)) & 0x7f))
#define GETARG_A(i) ((int)((((mrb_code)(i)) >> 23) & 0x1ff))