summaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disas.c b/disas.c
index 0c8cc2a8f4..d5aa7f3713 100644
--- a/disas.c
+++ b/disas.c
@@ -42,7 +42,7 @@ target_read_memory (memaddr, myaddr, length, info)
{
int i;
for(i = 0; i < length; i++) {
- myaddr[i] = ldub_code((void *)((long)memaddr));
+ myaddr[i] = ldub_code((void *)((long)memaddr + i));
}
return 0;
}