INCR/de
From MCS Wiki AVR
< INCR(Difference between revisions)
(→Example) |
(→Beispiel) |
||
Line 61: | Line 61: | ||
A = 5 'Wertzuweisung zu A | A = 5 'Wertzuweisung zu A | ||
− | Incr A ' Um eins erhöhen. A = A +1 | + | Incr A ' Um eins erhöhen. A = A + 1 |
Print A 'Ausgabe. Ergebnis: 6 | Print A 'Ausgabe. Ergebnis: 6 | ||
End | End |
Latest revision as of 00:44, 20 February 2013
Contents |
Funktion
Erhöht den Inhalt einer Variablen um eins.
Syntax
INCR var
Anmerkungen
var |
Beliebige numerische Variable. |
Siehe auch
Beispiel
'----------------------------------------------------------------------------------------- 'name : incr.bas 'copyright : (c) 1995-2005, MCS Electronics 'purpose : demo: INCR 'micro : Mega48 'suited for demo : yes 'commercial addon needed : no '----------------------------------------------------------------------------------------- $regfile = "m48def.dat" ' Benutzter Mikrocontroller $crystal = 4000000 ' Benutze Taktfrequenz $baud = 19200 ' Baudrate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Dim A As Byte A = 5 'Wertzuweisung zu A Incr A ' Um eins erhöhen. A = A + 1 Print A 'Ausgabe. Ergebnis: 6 End
Languages | English • Deutsch |
---|