On 12.11.2023 02:44, Rugxulo via Freedos-devel wrote:
FarAddr internal function

Thanks, that brings me further :-)

I also changed my coding style from a more C oriented style to a more Pascal like. Unlike in C, one does not have to pass around (explicit) pointers that often. For example instead of doing

procedure F(buffer : FarPointer);

I now do:

procedure F(var buffer);
begin
...
... FarAddr(buffer) ...
...

But I still have not found an elegant solution yet to do a widening conversion of an untyped pointer from near to far. Should be rarely needed though. For a typed pointer FarAddr(thing^) does the trick.

Bernd

_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to