MAKEINT/de

From MCS Wiki AVR
< MAKEINT(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = Compact two bytes into a word or integer. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> <...")
 
(Anmerkungen)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== (**COPIED FROM ENGLISH PAGE**) === <span class="f_Header">Action</span> =
+
= <span class="f_Header">Funktion</span> =
  
Compact two bytes into a word or integer.
+
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>
Line 15: Line 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;"
Line 23: Line 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;"
Line 30: Line 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;"
Line 37: Line 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.
  
 
|}
 
|}
Line 43: Line 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
Line 51: Line 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]]
Line 59: Line 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">

Latest revision as of 10:17, 5 March 2013

Contents

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  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language