Allow EmitOpCode to be called even after everything has been emitted
This commit is contained in:
parent
8599a8645a
commit
508899f8bb
1 changed files with 5 additions and 2 deletions
|
@ -78,8 +78,6 @@ namespace ChocolArm64.Translation
|
|||
{
|
||||
if (!AdvanceBlock())
|
||||
{
|
||||
--_opcIndex;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -148,6 +146,11 @@ namespace ChocolArm64.Translation
|
|||
|
||||
public void EmitOpCode()
|
||||
{
|
||||
if (_currBlock == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_opcIndex == 0)
|
||||
{
|
||||
MarkLabel(GetLabel(_currBlock.Position));
|
||||
|
|
Loading…
Add table
Reference in a new issue