diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-25 23:39:36 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-25 23:39:36 +0000 |
commit | c1075ddc8ff071a5ab88578467830835ded00a33 (patch) | |
tree | 7f39863ed1113aef7bb03e54cbd617205d3ee5c5 /py/showbc.c | |
parent | 1895cf91afb45ab16c280dd52b1d802d154864f0 (diff) | |
download | micropython-c1075ddc8ff071a5ab88578467830835ded00a33.tar.gz micropython-c1075ddc8ff071a5ab88578467830835ded00a33.zip |
py: add some more opcodes to showbc.
Diffstat (limited to 'py/showbc.c')
-rw-r--r-- | py/showbc.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/py/showbc.c b/py/showbc.c index a84d98de9c..517265be53 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -45,12 +45,14 @@ void py_show_byte_code(const byte *ip, int len) { DECODE_QSTR; PUSH(rt_load_const_dec(qstr)); break; + */ case PYBC_LOAD_CONST_ID: DECODE_QSTR; - PUSH(rt_load_const_str(qstr)); // TODO + printf("LOAD_CONST_ID %s", qstr_str(qstr)); break; + /* case PYBC_LOAD_CONST_STRING: DECODE_QSTR; PUSH(rt_load_const_str(qstr)); @@ -86,23 +88,19 @@ void py_show_byte_code(const byte *ip, int len) { printf("LOAD_GLOBAL %s", qstr_str(qstr)); break; - /* case PYBC_LOAD_ATTR: DECODE_QSTR; - *sp = rt_load_attr(*sp, qstr); + printf("LOAD_ATTR %s", qstr_str(qstr)); break; - */ case PYBC_LOAD_METHOD: DECODE_QSTR; printf("LOAD_METHOD %s", qstr_str(qstr)); break; - /* case PYBC_LOAD_BUILD_CLASS: - PUSH(rt_load_build_class()); + printf("LOAD_BUILD_CLASS"); break; - */ case PYBC_STORE_FAST_0: printf("STORE_FAST_0"); @@ -133,13 +131,14 @@ void py_show_byte_code(const byte *ip, int len) { DECODE_QSTR; rt_store_global(qstr, POP()); break; + */ case PYBC_STORE_ATTR: DECODE_QSTR; - rt_store_attr(sp[0], qstr, sp[1]); - sp += 2; + printf("STORE_ATTR %s", qstr_str(qstr)); break; + /* case PYBC_STORE_SUBSCR: rt_store_subscr(sp[1], sp[0], sp[2]); sp += 3; |