Indirekte addresierung
This commit is contained in:
parent
6074bd8217
commit
80775aa181
@ -791,6 +791,12 @@ namespace PIC_Simulator.PIC
|
||||
PCCounter = (int) (high | wert) - 1;
|
||||
}
|
||||
|
||||
if (index == ADDR_INDF) // indirekte adresierung
|
||||
{
|
||||
if (Register[ADDR_FSR] % 0x80 != 0) SetRegister(Register[ADDR_FSR], wert);
|
||||
return;
|
||||
}
|
||||
|
||||
Register[index] = wert;
|
||||
}
|
||||
|
||||
@ -806,6 +812,12 @@ namespace PIC_Simulator.PIC
|
||||
if (index == ADDR_PCLATH + 0x80) index -= 0x80;
|
||||
if (index == ADDR_INTCON + 0x80) index -= 0x80;
|
||||
|
||||
if (index == ADDR_INDF) // indirekte adresierung
|
||||
{
|
||||
if (Register[ADDR_FSR] % 0x80 != 0) return 0;
|
||||
return GetRegister(Register[ADDR_FSR]);
|
||||
}
|
||||
|
||||
return Register[index];
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
[ ] Inhaltsverz./Quellverz./Ä ußeres Ers.
|
||||
[ ] Darstellung /Prog.- struktur/all.Diagr.
|
||||
[ ] Inhaltsverz./Quellverz./Äußeres Ers.
|
||||
[ ] Darstellung /Prog.-struktur/all.Diagr.
|
||||
[ ] Befehlsbeschreibung + Diagramme
|
||||
[X] PDF-Hilfedatei aus Prog. aufrufen
|
||||
[/] Bedienkomfort
|
||||
|
Loading…
Reference in New Issue
Block a user