From 435357e06e61b450435e83f950f60fd32013e827 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 30 Oct 2019 17:15:23 -0700 Subject: [PATCH] Fixes a bug in STOS --- Source/Interface/Core/OpcodeDispatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Interface/Core/OpcodeDispatcher.cpp b/Source/Interface/Core/OpcodeDispatcher.cpp index 6360f82fb..a1738610d 100644 --- a/Source/Interface/Core/OpcodeDispatcher.cpp +++ b/Source/Interface/Core/OpcodeDispatcher.cpp @@ -1520,7 +1520,7 @@ void OpDispatchBuilder::STOSOp(OpcodeArgs) { // Make sure to start a new block after ending this one auto LoopEnd = CreateNewCodeBlock(); SetTrueJumpTarget(CondJump, LoopEnd); - SetCurrentCodeBlock(JumpTarget); + SetCurrentCodeBlock(LoopEnd); } void OpDispatchBuilder::MOVSOp(OpcodeArgs) { @@ -3253,7 +3253,7 @@ void OpDispatchBuilder::PAlignrOp(OpcodeArgs) { void OpDispatchBuilder::UnimplementedOp(OpcodeArgs) { // We don't actually support this instruction // Multiblock may hit it though - _Break(0, 0); + // _Break(0, 0); } #undef OpcodeArgs