Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-12 Thread Rugxulo via Freedos-devel
Hi,

On Sun, Nov 12, 2023 at 5:46 AM Bernd Böckmann via Freedos-devel
 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


Re: [Freedos-devel] New FreeDOS Edlin 2.23 is out on Sourceforge!

2023-11-12 Thread Jim Hall via Freedos-devel
And re-mirrored to the FreeDOS Files Archive at Ibiblio. :-)

Thanks!

On Sun, Nov 12, 2023 at 10:24 AM Gregory Pietsch  wrote:
>
> Oops! I keep forgetting to change the version numbers in the config.h and 
> batch files.  Fixed and re-uploaded the files to SourceForge.
> -- Gregory
>
> > On 11/12/2023 11:07 AM EST Jim Hall via Freedos-devel 
> >  wrote:
> >
> >
> > Thanks! I always love a new Edlin release. :-)
> >
> > I've mirrored it on the FreeDOS Files Archive at Ibiblio. Here's the link:
> > https://ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/edlin/2.23/
> >
> >
> > For anyone interested, the video Gregory mentioned is here:
> > https://www.youtube.com/watch?v=yapAepxbaT4
> >
> > The compile warning is at 2:47 (yes, this is confirmed fixed in Edlin
> > 2.23 using OpenWatcom C)
> >
> >
> > FYI that if you compile this on FreeDOS, Edlin 2.23 will actually
> > advertise itself as "2.22". To fix, you'll need to edit config-h.bc or
> > config-h.ow (depending on your compiler .. I used config-h.ow to
> > compile with OpenWatcom C) and change all occurrences of "2.22" to
> > "2.23" (3 occurrences in each file).
> >
> >
> > On Sun, Nov 12, 2023 at 9:50 AM Gregory Pietsch via Freedos-devel
> >  wrote:
> > >
> > > When Jim compiled Edlin 2.22 for the video, I noticed that the
> > > OpenWatcom compiler emitted a warning. Of course, this caused a
> > > disturbance in the Force. The new version 2.23 cleans up that warning,
> > > and therefore FreeDOS Edlin can now be thrown into the gladiatorial
> > > arena and slay the software demons called Fear, Doubt, Uncertainty,
> > > and Proprietary.
> > >
> > > Gregory
> >


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


Re: [Freedos-devel] New FreeDOS Edlin 2.23 is out on Sourceforge!

2023-11-12 Thread Gregory Pietsch via Freedos-devel
Oops! I keep forgetting to change the version numbers in the config.h and batch 
files.  Fixed and re-uploaded the files to SourceForge.
-- Gregory

> On 11/12/2023 11:07 AM EST Jim Hall via Freedos-devel 
>  wrote:
> 
>  
> Thanks! I always love a new Edlin release. :-)
> 
> I've mirrored it on the FreeDOS Files Archive at Ibiblio. Here's the link:
> https://ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/edlin/2.23/
> 
> 
> For anyone interested, the video Gregory mentioned is here:
> https://www.youtube.com/watch?v=yapAepxbaT4
> 
> The compile warning is at 2:47 (yes, this is confirmed fixed in Edlin
> 2.23 using OpenWatcom C)
> 
> 
> FYI that if you compile this on FreeDOS, Edlin 2.23 will actually
> advertise itself as "2.22". To fix, you'll need to edit config-h.bc or
> config-h.ow (depending on your compiler .. I used config-h.ow to
> compile with OpenWatcom C) and change all occurrences of "2.22" to
> "2.23" (3 occurrences in each file).
> 
> 
> On Sun, Nov 12, 2023 at 9:50 AM Gregory Pietsch via Freedos-devel
>  wrote:
> >
> > When Jim compiled Edlin 2.22 for the video, I noticed that the
> > OpenWatcom compiler emitted a warning. Of course, this caused a
> > disturbance in the Force. The new version 2.23 cleans up that warning,
> > and therefore FreeDOS Edlin can now be thrown into the gladiatorial
> > arena and slay the software demons called Fear, Doubt, Uncertainty,
> > and Proprietary.
> >
> > Gregory
> 
> 
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


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


Re: [Freedos-devel] New FreeDOS Edlin 2.23 is out on Sourceforge!

2023-11-12 Thread Jim Hall via Freedos-devel
Thanks! I always love a new Edlin release. :-)

I've mirrored it on the FreeDOS Files Archive at Ibiblio. Here's the link:
https://ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/edlin/2.23/


For anyone interested, the video Gregory mentioned is here:
https://www.youtube.com/watch?v=yapAepxbaT4

The compile warning is at 2:47 (yes, this is confirmed fixed in Edlin
2.23 using OpenWatcom C)


FYI that if you compile this on FreeDOS, Edlin 2.23 will actually
advertise itself as "2.22". To fix, you'll need to edit config-h.bc or
config-h.ow (depending on your compiler .. I used config-h.ow to
compile with OpenWatcom C) and change all occurrences of "2.22" to
"2.23" (3 occurrences in each file).


On Sun, Nov 12, 2023 at 9:50 AM Gregory Pietsch via Freedos-devel
 wrote:
>
> When Jim compiled Edlin 2.22 for the video, I noticed that the
> OpenWatcom compiler emitted a warning. Of course, this caused a
> disturbance in the Force. The new version 2.23 cleans up that warning,
> and therefore FreeDOS Edlin can now be thrown into the gladiatorial
> arena and slay the software demons called Fear, Doubt, Uncertainty,
> and Proprietary.
>
> Gregory


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


[Freedos-devel] New FreeDOS Edlin 2.23 is out on Sourceforge!

2023-11-12 Thread Gregory Pietsch via Freedos-devel
When Jim compiled Edlin 2.22 for the video, I noticed that the OpenWatcom 
compiler emitted a warning. Of course, this caused a disturbance in the Force. 
The new version 2.23 cleans up that warning, and therefore FreeDOS Edlin can 
now be thrown into the gladiatorial arena and slay the software demons called 
Fear, Doubt, Uncertainty, and Proprietary.
 
Gregory___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] libm-0.6 and libmpi-0.2

2023-11-12 Thread Jim Hall via Freedos-devel
Hi everyone!

For anyone who needs more info: libmpi is a Multiple Precision Integer
library, and libm is a C math library. Both are public domain. You can
find both on the FreeDOS Files Archive at Ibiblio, under
/files/devel/libs/libm and /files/devel/libs/libmpi. Thanks Gregory!


Here are the direct links:

https://ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/libs/libm/0.6/

https://ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/libs/libmpi/0.2/


On Sun, Nov 12, 2023 at 9:33 AM Gregory Pietsch via Freedos-devel
 wrote:
>
> In a world where mathematicians are the lowest of the low, I have sent Jim 
> the latest versions of these low-level libraries. These versions contain 
> mostly bug fixes. I am still wondering if someone out there can check the 
> math. -- Gregory
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


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


[Freedos-devel] libm-0.6 and libmpi-0.2

2023-11-12 Thread Gregory Pietsch via Freedos-devel
In a world where mathematicians are the lowest of the low, I have sent Jim the 
latest versions of these low-level libraries. These versions contain mostly bug 
fixes. I am still wondering if someone out there can check the math. -- Gregory___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] FreePascal near to far pointer conversion

2023-11-12 Thread Bernd Böckmann via Freedos-devel

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