[X] Testprogramm 8 (Interrupts)

This commit is contained in:
2017-05-16 18:08:39 +02:00
parent 8dc2517509
commit e064604cf0
3 changed files with 24 additions and 14 deletions

View File

@@ -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;
}