Fixed LOC instruction to match the FPGA

This commit is contained in:
davehein 2018-12-06 08:02:14 -06:00
parent e6ba494b46
commit bb903fc36f
1 changed files with 2 additions and 2 deletions

View File

@ -4574,9 +4574,9 @@ int32_t ExecutePasmInstruction2(PasmVarsT *pasmvars)
if (opcode & 4) // loc
{
if (czi & 4)
result = (pc + value2) << 2;
result = (pc + instruct + pc_incr);
else
result = value2 << 2;
result = instruct;
result &= ADDR_MASK;
}
else // calld