From a0d0f383c8976a15f7042c194b592490c766a7b7 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 19 Jun 2017 22:07:36 -0400 Subject: [PATCH] =?UTF-8?q?Corrected=20unconditional=20CALL=20timing.=20Co?= =?UTF-8?q?nditional's=20going=20to=20require=20more=20work=20because=20on?= =?UTF-8?q?ce=20the=20wait=20state=20is=20put=20into=20the=20right=20place?= =?UTF-8?q?,=20it=20breaks=20the=20assumption=20under=20which=20the=20Z80?= =?UTF-8?q?=20handles=20conditions=20=E2=80=94=20that=20they're=20either?= =?UTF-8?q?=20do=20something=20or=20else=20do=20nothing.=20So=20that=20can?= =?UTF-8?q?=20wait=20a=20day.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Processors/Z80/Z80.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/Z80/Z80.hpp b/Processors/Z80/Z80.hpp index 9d4aba26a..1bddc6d40 100644 --- a/Processors/Z80/Z80.hpp +++ b/Processors/Z80/Z80.hpp @@ -656,7 +656,7 @@ template class Processor { /* 0xc7 RST 00h */ RST(), /* 0xc8 RET Z */ RET(TestZ), /* 0xc9 RET */ StdInstr(Pop(pc_)), /* 0xca JP Z */ JP(TestZ), /* 0xcb [CB page] */StdInstr(FINDEX(), {MicroOp::SetInstructionPage, &cb_page}), - /* 0xcc CALL Z */ CALL(TestZ), /* 0xcd CALL */ StdInstr(Read16(pc_, temp16_), Push(pc_), {MicroOp::Move16, &temp16_.full, &pc_.full}), + /* 0xcc CALL Z */ CALL(TestZ), /* 0xcd CALL */ StdInstr(ReadInc(pc_, temp16_.bytes.low), Read4(pc_, temp16_.bytes.high), Push(pc_), {MicroOp::Move16, &temp16_.full, &pc_.full}), /* 0xce ADC A, n */ StdInstr(ReadInc(pc_, temp8_), {MicroOp::ADC8, &temp8_}), /* 0xcf RST 08h */ RST(), /* 0xd0 RET NC */ RET(TestNC), /* 0xd1 POP DE */ StdInstr(Pop(de_)),