IonicWind Software

IWBasic => General Questions => Topic started by: Techno on November 01, 2008, 10:13:33 AM

Title: How can I this statements Hi() and Lo() its not here in ebasic
Post by: Techno on November 01, 2008, 10:13:33 AM
Dear programmers

I have need this functions for separate the High order part and the low order part of an word of integer variable.
How can I do this in EBASIC ?



Out32((0x40), Lo(59659));   /* divide factor */
Out32((0x40), Hi(59659));   /* 1193180 / 20 */

Title: Re: How can I this statements Hi() and Lo() its not here in ebasic
Post by: sapero on November 01, 2008, 10:40:49 AM
Out32((0x40), 59659 & 255);
Out32((0x40), 59659 >> 8);

or

$include "windowssdk.inc"
Out32((0x40), LOBYTE(59659));
Out32((0x40), HIBYTE(59659));


Your session timed out while posting. Please try to re-submit your message
Title: Re: How can I this statements Hi() and Lo() its not here in ebasic
Post by: Techno on November 01, 2008, 10:48:24 AM
Thanks sapero

Have you time for my time functions to evaluate its on the other forum where post my timer functions but it give an GP fault why?
My OS is Windows XP Sp3