PCL und PCLATH
This commit is contained in:
@@ -806,7 +806,7 @@ namespace PIC_Simulator.PIC
|
||||
high &= 0x1F; // Only Bit <0,1,2,3,4>
|
||||
high <<= 8;
|
||||
|
||||
PCCounter = (int) (high | wert) - 1;
|
||||
PCCounter = (int) (high | wert);
|
||||
}
|
||||
|
||||
if (index == ADDR_INDF) // indirekte adresierung
|
||||
@@ -830,6 +830,11 @@ namespace PIC_Simulator.PIC
|
||||
if (index == ADDR_PCLATH + 0x80) index -= 0x80;
|
||||
if (index == ADDR_INTCON + 0x80) index -= 0x80;
|
||||
|
||||
if (index == ADDR_PCL) // PC
|
||||
{
|
||||
return (byte) (PCCounter & 0xFF);
|
||||
}
|
||||
|
||||
if (index == ADDR_INDF) // indirekte adresierung
|
||||
{
|
||||
if (Register[ADDR_FSR] % 0x80 != 0) return 0;
|
||||
|
Reference in New Issue
Block a user