May 08, 2024, 09:46:45 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


How can I this statements Hi() and Lo() its not here in ebasic

Started by Techno, November 01, 2008, 10:13:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Techno

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 */


sapero

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

Techno

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