Hello for all.

Sorry, if my question is too dumb, but I just started to make interest in GPC in the last few days. I'm advanced in Pascal language, I used Turbo Pascal and Borland Delphi before. But I haven't used GPC before, and I'm really not advanced in Unix-based operating systems.

I'm trying to compile one of my projects under Debian Linux with GPC, but it stops with an error message, that GPC doesn't know the Hi and Lo functions. I don't know that they are present in GPC in another unit, or not. I think some functions that supports the same thing must be there.

Here's the purpose of the mentioned funtions:


function Hi(X: word): byte;
function Hi(X: integer): byte;

Hi function returns the high-order byte of the specified word or 16-bit integer.


function Lo(X: word): byte;
function Lo(X: integer): byte;

Lo function returns the low-order byte of the specified word or 16-bit integer.