int p;
static const char *ii[2] = { "ix", "iy" };
- p = (buf->data[buf->n_fetch - 2] == (char) 0xdd) ? 0 : 1;
+ p = (buf->data[buf->n_fetch - 2] == (signed char) 0xdd) ? 0 : 1;
c = buf->data[buf->n_fetch - 1];
if ((c & 0x07) != 0x07)
p = 1 - p; /* 0 -> 1, 1 -> 0 */
|| buf->data[1] == 0x5b)
{
/* Double prefix, or end of data. */
- info->fprintf_func (info->stream, "nop ;%s", txt);
+ info->fprintf_func (info->stream, ".db 0x%02x ; %s", (unsigned)buf->data[0], txt);
buf->n_used = 1;
return buf->n_used;
}