das watchdog is ja ne coole sache, ich glaub das kommt bei mir mit ins Programm.

Ich weiss zwar nicht ob das jetzt so logisch, wie ich das jetzt mit dem watchdog gemacht hab, aber es funktionirt.
ok es sieht noch dämlicher aus als vorher
Code:
$regfile "m8def.dat"
$crystal = 8000000
Config Watchdog = 2048
Config Portc = Output
Config Portb = Output
Config Portd.0 = Input
Config Portd.1 = Input
Config Portd.7 = Output




Sichern:
Start Watchdog
Portc.3 = 1
If Portd.0 = 0 Then Portc.5 = 1
If Portd.1 = 0 Then Portc.5 = 1
Stop Watchdog


Entsichern:
Start Watchdog
Portc.3 = 0
If Portd.0 = 0 Then Goto Sichern:
If Portd.1 = 0 Then Goto Abschiessen:
Stop Watchdog
Goto Entsichern:

Abschiessen:
Start Watchdog
Portb.4 = 1

If Portd.0 = 0 Then Goto Launch:
Stop Watchdog
Goto Entsichern:

Launch:
Start Watchdog
Portb.5 = 1


Portc.1 = 1
Waitms 500
Stop Watchdog
Goto Entsichern:
Hunni