From 1f6f13672004fba16da454b9099ff20bf00418a3 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 27 Apr 2003 11:43:34 +0000 Subject: [PATCH] Save start of an opcode. Decrease cycles after the opcode. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@968 --- src/cpu/core_full.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu/core_full.cpp b/src/cpu/core_full.cpp index 7b4d9753..3d917e05 100644 --- a/src/cpu/core_full.cpp +++ b/src/cpu/core_full.cpp @@ -62,7 +62,7 @@ Bitu Full_DeCode(void) { if (DEBUG_HeavyIsBreakpoint()) return 1; #endif #endif - CPU_Cycles--; + inst.start=IPPoint; inst.entry=cpu.full.entry; inst.prefix=cpu.full.prefix; restartopcode: @@ -73,6 +73,7 @@ restartopcode: #include "core_full/op.h" #include "core_full/save.h" nextopcode:; + CPU_Cycles--; } SaveIP(); return 0;