summaryrefslogtreecommitdiff
path: root/src/z80_dis.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-09-20 00:02:42 +0000
committerIan C <ianc@noddybox.co.uk>2006-09-20 00:02:42 +0000
commit1f7e9c076768e6dc4aa0e5aef0a120a9a234c00b (patch)
treea032b026f0451870e42e2978e377896d45510f80 /src/z80_dis.c
parent6bbeddada8aceec51f76a727448d88467ef6b037 (diff)
Changed Z80 core and fixed raising of interrupt on R register.
Diffstat (limited to 'src/z80_dis.c')
-rw-r--r--src/z80_dis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/z80_dis.c b/src/z80_dis.c
index 6204f0d..8a8ade8 100644
--- a/src/z80_dis.c
+++ b/src/z80_dis.c
@@ -67,7 +67,7 @@ Z80Byte Z80_Dis_FetchByte(Z80 *cpu, Z80Word *pc)
#ifdef ENABLE_ARRAY_MEMORY
return Z80_MEMORY[(*pc)++];
#else
- return cpu->disread(cpu,(*pc)++);
+ return cpu->priv->disread(cpu,(*pc)++);
#endif
}
@@ -1463,7 +1463,7 @@ static void DIS_DJNZ (Z80 *z80, Z80Byte op, Z80Word *pc)
#ifdef ENABLE_ARRAY_MEMORY
new=*pc+(Z80Relative)Z80_MEMORY[*pc]+1;
#else
- new=*pc+(Z80Relative)z80->disread(z80,*pc)+1;
+ new=*pc+(Z80Relative)z80->priv->disread(z80,*pc)+1;
#endif
(*pc)++;
Z80_Dis_Set("djnz",Z80_Dis_Printf("$%.4x",new));
@@ -1482,7 +1482,7 @@ static void DIS_JR (Z80 *z80, Z80Byte op, Z80Word *pc)
#ifdef ENABLE_ARRAY_MEMORY
new=*pc+(Z80Relative)Z80_MEMORY[*pc]+1;
#else
- new=*pc+(Z80Relative)z80->disread(z80,*pc)+1;
+ new=*pc+(Z80Relative)z80->priv->disread(z80,*pc)+1;
#endif
(*pc)++;
@@ -1507,7 +1507,7 @@ static void DIS_JR_CO (Z80 *z80, Z80Byte op, Z80Word *pc)
#ifdef ENABLE_ARRAY_MEMORY
new=*pc+(Z80Relative)Z80_MEMORY[*pc]+1;
#else
- new=*pc+(Z80Relative)z80->disread(z80,*pc)+1;
+ new=*pc+(Z80Relative)z80->priv->disread(z80,*pc)+1;
#endif
(*pc)++;