diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-02 18:15:33 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-02 18:15:33 +0000 |
commit | 27bf5b829b799e203b937fb2689f7e89d0659854 (patch) | |
tree | f15320c7b9381964d2c271e922527318a69e3220 /py | |
parent | f9168ba78b3d59086d159110e13250a62bfb9b6d (diff) | |
download | micropython-27bf5b829b799e203b937fb2689f7e89d0659854.tar.gz micropython-27bf5b829b799e203b937fb2689f7e89d0659854.zip |
py: Add more bytecodes to showbc.c.
Diffstat (limited to 'py')
-rw-r--r-- | py/showbc.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/py/showbc.c b/py/showbc.c index d5ea704313..15cd056427 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -276,14 +276,10 @@ void mp_show_byte_code(const byte *ip, int len) { printf("BUILD_LIST " UINT_FMT, unum); break; - /* case MP_BC_LIST_APPEND: DECODE_UINT; - // I think it's guaranteed by the compiler that sp[unum] is a list - rt_list_append(sp[unum], sp[0]); - sp++; + printf("LIST_APPEND " UINT_FMT, unum); break; - */ case MP_BC_BUILD_MAP: DECODE_UINT; @@ -343,16 +339,9 @@ void mp_show_byte_code(const byte *ip, int len) { printf("RETURN_VALUE"); break; - /* case MP_BC_YIELD_VALUE: - nlr_pop(); - *ip_in_out = ip; - fastn[0] = fast0; - fastn[1] = fast1; - fastn[2] = fast2; - *sp_in_out = sp; - return true; - */ + printf("YIELD_VALUE"); + break; default: printf("code %p, byte code 0x%02x not implemented\n", ip, op); |