From 399703a4718680fb83886cacea1e5f7d84b1da27 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 25 May 2017 21:48:28 -0400 Subject: [PATCH] Implemented JR. --- Processors/Z80/Z80.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Processors/Z80/Z80.hpp b/Processors/Z80/Z80.hpp index 941635eac..f44020889 100644 --- a/Processors/Z80/Z80.hpp +++ b/Processors/Z80/Z80.hpp @@ -356,7 +356,8 @@ template class Processor: public MicroOpScheduler { INC_INC_DEC_LD(de_, de_.bytes.high), /* 0x17 RLA */ Program({MicroOp::RLA}), - /* 0x18 JR */ XX, /* 0x19 ADD HL, DE */ ADD16(index, de_), + /* 0x18 JR */ Program(FETCH(temp8_, pc_), WAIT(5), {MicroOp::CalculateIndexAddress, &pc_.full}, {MicroOp::Move16, &temp16_.full, &pc_.full}), + /* 0x19 ADD HL, DE */ ADD16(index, de_), /* 0x1a LD A, (DE) */ Program(FETCHL(a_, de_)), /* 0x1b DEC DE; 0x1c INC E; 0x1d DEC E; 0x1e LD E, n */