Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f753971e
Commit
f753971e
authored
Jun 03, 2014
by
Paul Sokolovsky
Browse files
showbc: Make micropython -v also dump bytecode in hex form.
parent
a4ac5b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/emitglue.c
View file @
f753971e
...
...
@@ -71,16 +71,16 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, byte *code, uint len, uint
DEBUG_printf
(
" %s"
,
qstr_str
(
arg_names
[
i
]));
}
DEBUG_printf
(
"
\n
"
);
for
(
int
i
=
0
;
i
<
128
&&
i
<
len
;
i
++
)
{
if
(
i
>
0
&&
i
%
16
==
0
)
{
DEBUG_printf
(
"
\n
"
);
}
DEBUG_printf
(
" %02x"
,
code
[
i
]);
}
DEBUG_printf
(
"
\n
"
);
#endif
#if MICROPY_DEBUG_PRINTERS
if
(
mp_verbose_flag
>
0
)
{
for
(
int
i
=
0
;
i
<
128
&&
i
<
len
;
i
++
)
{
if
(
i
>
0
&&
i
%
16
==
0
)
{
printf
(
"
\n
"
);
}
printf
(
" %02x"
,
code
[
i
]);
}
printf
(
"
\n
"
);
mp_bytecode_print
(
rc
,
code
,
len
);
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment