summaryrefslogtreecommitdiffstatshomepage
path: root/py/showbc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-19 01:14:37 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-19 01:14:37 +0000
commite02b2d43912d13d216936786e4b7a33918877418 (patch)
tree9782c46cdbbb8af416be1eac7f3e0a053d25aa80 /py/showbc.c
parentebde0b8a095653ed3073cf821c44e91ec0897a41 (diff)
downloadmicropython-e02b2d43912d13d216936786e4b7a33918877418.tar.gz
micropython-e02b2d43912d13d216936786e4b7a33918877418.zip
py: Temporary fix for bug where not enough VM state is allocated.
Diffstat (limited to 'py/showbc.c')
-rw-r--r--py/showbc.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/py/showbc.c b/py/showbc.c
index ba7c309b31..9a7ff9e3be 100644
--- a/py/showbc.c
+++ b/py/showbc.c
@@ -206,25 +206,15 @@ void mp_show_byte_code(const byte *ip, int len) {
printf("POP_JUMP_IF_FALSE " UINT_FMT, ip + unum - ip_start);
break;
- /*
case MP_BC_JUMP_IF_TRUE_OR_POP:
DECODE_SLABEL;
- if (rt_is_true(*sp)) {
- ip += unum;
- } else {
- sp++;
- }
+ printf("JUMP_IF_TRUE_OR_POP " UINT_FMT, ip + unum - ip_start);
break;
case MP_BC_JUMP_IF_FALSE_OR_POP:
DECODE_SLABEL;
- if (rt_is_true(*sp)) {
- sp++;
- } else {
- ip += unum;
- }
+ printf("JUMP_IF_FALSE_OR_POP " UINT_FMT, ip + unum - ip_start);
break;
- */
case MP_BC_SETUP_EXCEPT:
DECODE_ULABEL; // except labels are always forward