Fix parsing of for-loops.
This commit is contained in:
@@ -26,6 +26,6 @@ void serializer_dump_nums (const int *, uint8_t, uint8_t, uint8_t);
|
||||
|
||||
void serializer_dump_opcode (const void *);
|
||||
|
||||
void serializer_rewrite_opcode (const int8_t, const void *);
|
||||
void serializer_rewrite_opcode (const uint8_t, const void *);
|
||||
|
||||
#endif // SERIALIZER_H
|
||||
|
||||
@@ -100,7 +100,7 @@ __fseek(_FILE * fp, /**< stream pointer */
|
||||
_whence_t whence) /**< specifies position type
|
||||
to add offset to */
|
||||
{
|
||||
int whence_real;
|
||||
int whence_real = SEEK_CUR;
|
||||
switch ( whence )
|
||||
{
|
||||
case __SEEK_SET:
|
||||
|
||||
@@ -79,11 +79,11 @@ serializer_dump_opcode (const void *opcode)
|
||||
}
|
||||
|
||||
void
|
||||
serializer_rewrite_opcode (const int8_t offset, const void *opcode)
|
||||
serializer_rewrite_opcode (const uint8_t loc, const void *opcode)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
__printf ("%03d: %20s ", opcode_counter + offset, massive[(int)((char*)opcode)[0]]);
|
||||
__printf ("%03d: %20s ", loc, massive[(int)((char*)opcode)[0]]);
|
||||
for (i = 1; i < 4; i++)
|
||||
__printf ("%4d ", ((char*)opcode)[i]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user