Fix couple of bugs show-opcodes: lexer should not dump lines, serializer must not rewrite a single opcode when dumping

This commit is contained in:
Ilmir Usmanov
2014-07-31 21:09:42 +04:00
parent 0d1935e3a8
commit 14f0563d1a
4 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -99,10 +99,9 @@ serializer_dump_nums (const int32_t nums[], uint8_t size, uint16_t offset, uint8
{
__printf ("%3d %7d\n", i + strings_num, nums[i]);
}
__printf ("\n");
}
__printf ("\n");
data = mem_heap_alloc_block ((size_t) (offset + size * 4 + 1), MEM_HEAP_ALLOC_LONG_TERM);
if (!data)
parser_fatal (ERR_MEMORY);
@@ -148,6 +147,8 @@ serializer_dump_opcode (OPCODE opcode)
__printf ("\n");
}
else
opcode_counter++;
}
void