summaryrefslogtreecommitdiff
path: root/py/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/vm.c')
-rw-r--r--py/vm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/vm.c b/py/vm.c
index a4fbf2f16..2f5977d82 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -305,6 +305,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t *
rt_store_map(sp[0], sp[-2], sp[-1]);
break;
+ case PYBC_MAP_ADD:
+ DECODE_UINT;
+ // I think it's guaranteed by the compiler that sp[unum + 1] is a map
+ rt_store_map(sp[unum + 1], sp[0], sp[1]);
+ sp += 2;
+ break;
+
case PYBC_BUILD_SET:
DECODE_UINT;
obj1 = rt_build_set(unum, sp);