English
Source / code snippets

Hiword Loword Makelong

 

Michael
Wodrich
The following Source from the Babyklappe should
from 2 übergebenen Integers one LongInt create:
- 1. worth = niederwertiger part
- 2. worth = höherwertiger part
Print $ + Hex$( MakeLong( $1234, $ABCD )) would means $ABCD1234 spend.
CompileMarkSeparation
!Source wurde am 23.05.2006 in die Babyklappe auf XProfan.Com abgelegt:
Def MakeLong(2) Or(@&(1),Mul(@&(2),$10000))e>

...and the Gegenfunktionen should whom LongInt-worth into upper/downstairs Half decompose:
CompileMarkSeparation
!Source wurde am 23.05.2006 in die Babyklappe auf XProfan.Com abgelegt:
Def HiWord(1) Div&(&(1),$10000)
Def LoWord(1) And(&(1),$FFFF)re>

there The singlelined functions abgeschafft go should,
would The direct Übernahme in XProfan meaningfully.

In of my with Operators written INC
stand these functions namely too drin:
CompileMarkSeparation
!
Def MakeLong(2) %(1) + (%(2) << 16)
Def LoWord(1) &(1) & $FFFF
Def HiWord(1) &(1)  $10000pre>

Best wishes
Michael Wodrich

P.s.: Korrektur is now eingearbeitet...
 
Programmieren, das spannendste Detektivspiel der Welt.
05/31/06  
 




RGH
Hello Michael, your example is something unhappy chosen, because there go from two byte (8-bit) one 16-bit-Integer made and not from two 16-bit-Integer one LongInt (32-bit).

so would it correctly:

Print $ + Hex$( MakeLong( $1234, $ABCD )) would means $ABCD1234 spend.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
05/31/06  
 




Michael
Wodrich
Yes, The loves Nachtschichten...
 
Programmieren, das spannendste Detektivspiel der Welt.
05/31/06  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.521 Views

Untitledvor 0 min.
H.Brill08/04/23
Sven Bader07/03/23
gerd03/16/13
Detlef Jagolski02/20/12
More...

Themeninformationen

this Topic has 2 subscriber:

Michael Wodrich (2x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie