aboutsummaryrefslogtreecommitdiff
path: root/py/bc0.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-04 18:44:46 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-04 18:44:46 +0000
commite9906ac3d771a312b05d76e42aee8e806dd0d128 (patch)
tree95cd30d3a32e715fc2c9553ba1ccb1a72bf86dd8 /py/bc0.h
parent4d4bc9533edf3f82c5d19b79be9891521b267837 (diff)
Add ellipsis object.
Diffstat (limited to 'py/bc0.h')
-rw-r--r--py/bc0.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/py/bc0.h b/py/bc0.h
index 773e23d2e..0a4a49ce6 100644
--- a/py/bc0.h
+++ b/py/bc0.h
@@ -1,12 +1,16 @@
+// Micro Python byte-codes.
+// The comment at the end of the line (if it exists) tells the arguments to the byte-code.
+
#define MP_BC_LOAD_CONST_FALSE (0x10)
#define MP_BC_LOAD_CONST_NONE (0x11)
#define MP_BC_LOAD_CONST_TRUE (0x12)
-#define MP_BC_LOAD_CONST_SMALL_INT (0x13) // 24-bit, in excess
-#define MP_BC_LOAD_CONST_INT (0x14) // qstr
-#define MP_BC_LOAD_CONST_DEC (0x15) // qstr
-#define MP_BC_LOAD_CONST_ID (0x16) // qstr
-#define MP_BC_LOAD_CONST_BYTES (0x17) // qstr
-#define MP_BC_LOAD_CONST_STRING (0x18) // qstr
+#define MP_BC_LOAD_CONST_ELLIPSIS (0x13)
+#define MP_BC_LOAD_CONST_SMALL_INT (0x14) // 24-bit, in excess
+#define MP_BC_LOAD_CONST_INT (0x15) // qstr
+#define MP_BC_LOAD_CONST_DEC (0x16) // qstr
+#define MP_BC_LOAD_CONST_ID (0x17) // qstr
+#define MP_BC_LOAD_CONST_BYTES (0x18) // qstr
+#define MP_BC_LOAD_CONST_STRING (0x19) // qstr
#define MP_BC_LOAD_FAST_0 (0x20)
#define MP_BC_LOAD_FAST_1 (0x21)