ale chyba czegos nie kumam bo to nie chce sie skompilowac.
kto wie jak to powinno byc?
listing:
Kod: Zaznacz cały
Dim E As Byte
Dim C As Byte
E = 7
C = 7
Declare Sub Dodaj
Config Timer0 = Counter , Gate = Internal , Mode = 1
P3.4 = 0
Enable Interrupts
Enable Timer0
On Timer0 Dodaj
$asm
Petla:
djnz (e),petla
cpl p3.0
mov (e),(c)
sjmp petla
$end Asm
End
Dodaj:
C = C + 7
If C > 40 Then
C = C - 40
End If
E = C
Returna potem jeszcze Label nod found (.dodaj)
próbowalem różnych konfiguracji a helpa to chyba znam juz na pamięć.