[X] Testprogramm 8 (Interrupts)
This commit is contained in:
@@ -132,6 +132,8 @@ namespace PIC_Simulator.PIC
|
||||
public PICTimer Zaehler;
|
||||
public PICWatchDog WatchDog;
|
||||
|
||||
public byte Merker_RB0;
|
||||
|
||||
public PICProgramm(Form1 f)
|
||||
{
|
||||
Zaehler = new PICTimer(this);
|
||||
@@ -810,7 +812,13 @@ namespace PIC_Simulator.PIC
|
||||
|
||||
Zaehler.TimerBerechnen(cycleCount);
|
||||
|
||||
WatchDog.Aktualisieren(cycleCount);
|
||||
WatchDog.Aktualisieren(cycleCount);
|
||||
|
||||
if (Merker_RB0 != Register[ADDR_PORT_B])
|
||||
{
|
||||
Interrupt_RB(Merker_RB0, Register[ADDR_PORT_B]);
|
||||
Merker_RB0 = Register[ADDR_PORT_B];
|
||||
}
|
||||
|
||||
return PCCounter >= befehle.Count;
|
||||
}
|
||||
|
Reference in New Issue
Block a user