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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user