T80: skip byte after a stop opcode, fixes the Konami Collection Startup bugs

This commit is contained in:
Bruno Duarte Gouveia
2020-06-19 18:23:21 +01:00
committed by GitHub
parent f75bc918a5
commit 6602ca8795

View File

@@ -1170,9 +1170,15 @@ begin
when "11101001" =>
-- JP (HL)
JumpXY <= '1';
when "00010000" =>
if Mode = 3 then
when "00010000" =>
if Mode = 3 then -- STOP and skip next byte
MCycles <= "010";
I_DJNZ <= '1';
case to_integer(unsigned(MCycle)) is
when 2 =>
Inc_PC <= '1';
when others => null;
end case;
elsif Mode < 2 then
-- DJNZ,e
MCycles <= "011";