aboutsummaryrefslogtreecommitdiff
path: root/opcodes/z80-dis.c
diff options
context:
space:
mode:
authorArnold Metselaar <arnold.metselaar@planet.nl>2006-01-17 21:15:56 +0000
committerArnold Metselaar <arnold.metselaar@planet.nl>2006-01-17 21:15:56 +0000
commitc9021189f60aa6e22a8e1d2e541cdb67285b3987 (patch)
tree7b47a73d7cb73e6e716ac494e014e8c48bfd0a03 /opcodes/z80-dis.c
parentd99b646536a8d905046ac3aabe8624fd86d56ccc (diff)
downloadgdb-c9021189f60aa6e22a8e1d2e541cdb67285b3987.zip
gdb-c9021189f60aa6e22a8e1d2e541cdb67285b3987.tar.gz
gdb-c9021189f60aa6e22a8e1d2e541cdb67285b3987.tar.bz2
Use unsigned char to hold data to be disassembled.
Diffstat (limited to 'opcodes/z80-dis.c')
-rw-r--r--opcodes/z80-dis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/opcodes/z80-dis.c b/opcodes/z80-dis.c
index 38ce4d1..a3d1247 100644
--- a/opcodes/z80-dis.c
+++ b/opcodes/z80-dis.c
@@ -26,7 +26,7 @@ struct buffer
bfd_vma base;
int n_fetch;
int n_used;
- char data[4];
+ unsigned char data[4];
} ;
typedef int (*func)(struct buffer *, disassemble_info *, char *);
@@ -377,9 +377,9 @@ static int
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))
{
@@ -398,9 +398,9 @@ prt_d_n (struct buffer *buf, disassemble_info * info, char *txt)
{
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))
{
@@ -454,7 +454,7 @@ pref_xd_cb (struct buffer * buf, disassemble_info * info, char* txt)
{
int d;
char arg[TXTSIZ];
- signed char *p;
+ unsigned char *p;
buf->n_used = 4;
p = buf->data;