From 11305c2e6b4eb34cb37422f848215c91c4de75ef Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 29 Jun 2022 21:40:48 -0400 Subject: [PATCH] Eliminate large gap in `case` values. --- .../68000Mk2/Implementation/68000Mk2Implementation.hpp | 10 ++++++---- Processors/68000Mk2/Implementation/68000Mk2Storage.hpp | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index 41ab1b05d..969cc501c 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -24,7 +24,7 @@ namespace MC68000Mk2 { /// me for their purpose rather than automatically by file position. /// These are negative to avoid ambiguity with the other group. enum ExecutionState: int { - Reset = std::numeric_limits::min(), + Reset, Decode, WaitForDTACK, WaitForInterrupt, @@ -189,6 +189,8 @@ enum ExecutionState: int { MOVE_b, MOVE_w, AddressingDispatch(MOVE_bw), MOVE_bw_AbsoluteLong_prefetch_first, AddressingDispatch(MOVE_l), MOVE_l_AbsoluteLong_prefetch_first, + + Max }; #undef AddressingDispatch @@ -214,7 +216,7 @@ void Processor::min(); + int state_ = 0; /// Counts time left on the clock before the current batch of processing /// is complete; may be less than zero.