Skip to content
Snippets Groups Projects
Commit bdf822b3 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add quick impl for MP_BC_LOAD_CONST_BYTES which just creates qstr so far.

This is based on the fact that qstr so far behaves more like byte string
than like Unicode string (for example, "012"[0] returns 48 (int)).
parent fe8fb916
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,11 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
PUSH(rt_load_const_str(qstr)); // TODO
break;
case MP_BC_LOAD_CONST_BYTES:
DECODE_QSTR;
PUSH(rt_load_const_str(qstr)); // TODO
break;
case MP_BC_LOAD_CONST_STRING:
DECODE_QSTR;
PUSH(rt_load_const_str(qstr));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment