MAKEINT/de

Aus MCS Wiki AVR
< MAKEINT(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
((**COPIED FROM ENGLISH PAGE**) =)
(Anmerkungen)
 
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
= <span class="f_Header">Funktion</span> =
 
= <span class="f_Header">Funktion</span> =
  
Kombiniert zwei Variablen vom Typ Byte zu einem Word oder Interger.
+
Kombiniert zwei Variablen vom Typ Byte zu einem Word oder Integer.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Zeile 15: Zeile 15:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Remarks</span> =
+
= <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="601" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
{| width="601" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
Zeile 23: Zeile 23:
  
 
| valign="top" width="100%" style="width: 530px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 530px; border: 1px solid rgb(0, 0, 0);" |  
Variable that will be assigned with the converted value.
+
Variable der das Ergebnis der Funktion zugewiesen wird.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Zeile 30: Zeile 30:
  
 
| valign="top" width="100%" style="width: 530px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 530px; border: 1px solid rgb(0, 0, 0);" |  
Variable or constant with the LS Byte.
+
Variable oder Konstante des niederwertigen Bytes.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Zeile 37: Zeile 37:
  
 
| valign="top" width="100%" style="width: 530px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 530px; border: 1px solid rgb(0, 0, 0);" |  
Variable or constant with the MS Byte.
+
Variable oder Konstante des höherwertigen Bytes.
  
 
|}
 
|}
Zeile 43: Zeile 43:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
The equivalent code is:
+
Ein dazu äquivalenter Code:
  
 
varn = (256 * MSB) + LSB
 
varn = (256 * MSB) + LSB
Zeile 51: Zeile 51:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">See also</span> =
+
= <span class="f_Header">Siehe auch</span> =
  
 
[[LOW]]&nbsp;,&nbsp;[[HIGH]]&nbsp;,&nbsp;[[MAKEBCD]]&nbsp;,&nbsp;[[MAKEDEC]]
 
[[LOW]]&nbsp;,&nbsp;[[HIGH]]&nbsp;,&nbsp;[[MAKEBCD]]&nbsp;,&nbsp;[[MAKEDEC]]
Zeile 59: Zeile 59:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Example</span> =
+
= <span class="f_Header">Beispiel</span> =
  
 
<br/><source lang="bascomavr">
 
<br/><source lang="bascomavr">

Aktuelle Version vom 5. März 2013, 11:17 Uhr

Inhaltsverzeichnis

Funktion

Kombiniert zwei Variablen vom Typ Byte zu einem Word oder Integer.

 

 

Syntax

varn = MAKEINT(LSB , MSB)

 

 

Anmerkungen

Varn

Variable der das Ergebnis der Funktion zugewiesen wird.

LSB

Variable oder Konstante des niederwertigen Bytes.

MSB

Variable oder Konstante des höherwertigen Bytes.

 

Ein dazu äquivalenter Code:

varn = (256 * MSB) + LSB

 

 

Siehe auch

LOW , HIGH , MAKEBCD , MAKEDEC

 

 

Beispiel


Dim A As Integer , I As Integer
A = 2
I = Makeint(a , 1) 'I = (1 * 256) + 2 = 258
End

Languages   English Deutsch  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache