INCR/de
From MCS Wiki AVR
				
								
				< INCR(Difference between revisions)
				
																
				
				
								
				|  (Created page with "= <span class="f_Header">Action</span> =  Increments a variable by one.  <span style="font-family: Arial;"> </span>  <span style="font-family: Arial;"> </span>  = <s...") |  (→Beispiel) | ||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | = <span class="f_Header">Funktion</span> = | |
| − | + | Erhöht den Inhalt einer Variablen um eins. | |
| <span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
| Line 15: | Line 15: | ||
| <span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
| − | = <span class="f_Header"> | + | = <span class="f_Header">Anmerkungen</span> = | 
| <div style="padding: 0px; margin: 0px 0px 0px 4px;"> | <div style="padding: 0px; margin: 0px 0px 0px 4px;"> | ||
| {| width="488" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;" | {| width="488" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;" | ||
| |- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
| | valign="top" width="9%" style="width: 40px; border: 1px solid rgb(0, 0, 0);" |   | | valign="top" width="9%" style="width: 40px; border: 1px solid rgb(0, 0, 0);" |   | ||
| − | + | var | |
| | valign="top" width="90%" style="width: 439px; border: 1px solid rgb(0, 0, 0);" |   | | valign="top" width="90%" style="width: 439px; border: 1px solid rgb(0, 0, 0);" |   | ||
| − | + | Beliebige numerische Variable. | |
| |} | |} | ||
| Line 31: | Line 31: | ||
| <span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
| − | = <span class="f_Header"> | + | = <span class="f_Header">Siehe auch</span> = | 
| [[DECR]] | [[DECR]] | ||
| Line 39: | Line 39: | ||
| <span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
| − | = <span class="f_Header"> | + | = <span class="f_Header">Beispiel</span> = | 
| <br/><source lang="bascomavr"> | <br/><source lang="bascomavr"> | ||
| Line 51: | Line 51: | ||
| '----------------------------------------------------------------------------------------- | '----------------------------------------------------------------------------------------- | ||
| − | $regfile = "m48def.dat" '  | + | $regfile = "m48def.dat" ' Benutzter Mikrocontroller | 
| − | $crystal = 4000000 '  | + | $crystal = 4000000 ' Benutze Taktfrequenz | 
| − | $baud = 19200 '  | + | $baud = 19200 ' Baudrate | 
| $hwstack = 32 ' default use 32 for the hardware stack | $hwstack = 32 ' default use 32 for the hardware stack | ||
| $swstack = 10 ' default use 10 for the SW stack | $swstack = 10 ' default use 10 for the SW stack | ||
| Line 60: | Line 60: | ||
| Dim A As Byte | Dim A As Byte | ||
| − | A = 5 ' | + | A = 5 'Wertzuweisung zu A | 
| − | Incr A ' | + | Incr A ' Um eins erhöhen.   A = A + 1 | 
| − | Print A ' | + | Print A 'Ausgabe. Ergebnis: 6 | 
| End | End | ||
| </source><br/>{{Languages}} | </source><br/>{{Languages}} | ||
| [[Category:BASCOM Language Reference/de]] | [[Category:BASCOM Language Reference/de]] | ||
Latest revision as of 23:44, 19 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 | 
|---|