fix inderect addr

This commit is contained in:
Mike Schwörer 2017-05-11 19:13:46 +02:00
parent 87e5658818
commit 32c360ebb8
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
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]];
}

View File

@ -17,7 +17,7 @@
[X] Testprogramm 3 (Byte Befehle ohne 4).
[X] Testprogramm 4 (DECFSZ, RLF, RRF...
[X] Testprogramm 5 (Bitbefehle)
[ ] Testprogramm 6 (indirekte Adressierung)
[X] Testprogramm 6 (indirekte Adressierung)
[ ] Testprogramm 7 (Timer 0 )
[X] Ext. Taktgeber an RA4 + IO-Pin
[ ] Testprogramm 7 (Interrupts)