From ba407390c6ae965fe217ca7ee2a8cffdd701b623 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 19 Sep 2006 23:39:18 +0000 Subject: Changed interface so that Z80 registers are exposed publicly -- using a Set/Get interface was too ponderous for emulation needs. --- z80_dis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'z80_dis.c') diff --git a/z80_dis.c b/z80_dis.c index 6204f0d..8a8ade8 100644 --- a/z80_dis.c +++ b/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)++; -- cgit v1.2.3