Hallo Matthias!
Das Programm ist aber für ein Terminal nicht sonderlich gut geeignet. Das spuckt binäre Werte aus. Also drei binäre Bytes. Besser wäre es doch wenn man das Ganze etwas anders programmieren würde auf Basis deiner Idee, nur etwas korregiert auch bei der führenden Null:
Grüsse WolfgangCode:Define Knopf Port[1] Define xStd Byte[1] Define xMin Byte[2] Define xSek Byte[3] #Start Second = 0 Minute = 0 Hour = 0 If Knopf Then GoTo Start #Start2 If Not Knopf Then GoTo Start2 #Stop If Knopf Then GoTo Stop xSek = Second xMin = Minute xStd = Hour Print "Zeit: "; If xStd > 9 Then Print xStd; ":"; Else Print "0"; xStd; ":"; If xMin > 9 Then Print xMin; ":"; Else Print "0"; xMin; ":"; If xSek > 9 Then Print xSek Else Print "0"; xSek Print #Stop2 If Not Knopf Then GoTo Stop2 GoTo Start







Zitieren

Lesezeichen