diff --git a/PIC_Simulator/PIC/PICProgramm.cs b/PIC_Simulator/PIC/PICProgramm.cs index fe1c28c..56937b4 100644 --- a/PIC_Simulator/PIC/PICProgramm.cs +++ b/PIC_Simulator/PIC/PICProgramm.cs @@ -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]]; } diff --git a/Projektinformationen/Tabelle.txt b/Projektinformationen/Tabelle.txt index 9d2c48a..8686870 100644 --- a/Projektinformationen/Tabelle.txt +++ b/Projektinformationen/Tabelle.txt @@ -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)