+2006-01-17 Arnold Metselaar <arnoldm@sourceware.org>
+
+ * z80-dis.c (struct buffer, prt_d, prt_d_n, pref_xd_cb): Use
+ unsigned char to hold data to be disassembled.
+
2006-01-17 Andreas Schwab <schwab@suse.de>
PR binutils/1486
bfd_vma base;
int n_fetch;
int n_used;
- char data[4];
+ unsigned char data[4];
} ;
typedef int (*func)(struct buffer *, disassemble_info *, char *);
prt_d (struct buffer *buf, disassemble_info * info, char *txt)
{
int d;
- signed char *p;
+ unsigned char *p;
- p = (unsigned char*) buf->data + buf->n_fetch;
+ p = buf->data + buf->n_fetch;
if (fetch_data (buf, info, 1))
{
{
char mytxt[TXTSIZ];
int d;
- signed char *p;
+ unsigned char *p;
- p = (unsigned char*) buf->data + buf->n_fetch;
+ p = buf->data + buf->n_fetch;
if (fetch_data (buf, info, 1))
{
{
int d;
char arg[TXTSIZ];
- signed char *p;
+ unsigned char *p;
buf->n_used = 4;
p = buf->data;