fix inderect addr

This commit is contained in:
2017-05-11 19:13:46 +02:00
parent 87e5658818
commit 32c360ebb8
2 changed files with 2 additions and 2 deletions

View File

@@ -837,7 +837,7 @@ namespace PIC_Simulator.PIC
if (index == ADDR_INDF) // indirekte adresierung
{
if (Register[ADDR_FSR] % 0x80 != 0) return 0;
if (Register[ADDR_FSR] % 0x80 == 0) return 0;
return Register[Register[ADDR_FSR]];
}