Hi, On Sun, Nov 12, 2023 at 5:46 AM Bernd Böckmann via Freedos-devel <freedos-devel@lists.sourceforge.net> wrote: > > On 12.11.2023 02:44, Rugxulo via Freedos-devel wrote: > > 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.
You can get the current code segment or data segment with the CSeg and DSeg functions. * https://www.freepascal.org/docs-html/rtl/system/seg.html Also see the "absolute" keyword: * https://wiki.freepascal.org/Absolute _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel