Hi,

On 25 Aug 2022, at 9:41, Paul Dufresne via Freedos-devel wrote:

> While thinking about 64k limit for edit... I come to think about 16 bits and 
> 32 bits programs...
>

the 64kb limit is an artificial limit in the source code of the "edit" tool:

https://gitlab.com/FreeDOS/base/edit-freedos/-/blob/master/SOURCE/EDIT/EDIT.C

/* check file size */
        if (sb.st_size > 64000UL)
            {
            ermsg = DFmalloc(strlen(FileName)+100); /* alloc fixed 0.7a */
            strcpy(ermsg, "File too large for this version of Edit:\n");
            strcat(ermsg, FileName);
            ErrorMessage(ermsg);
            free(ermsg);
            return;
            }

The program "edit.exe" is compiled in the "large" memory model, it *should* be 
able to use the whole available DOS memory, at least more than 64kb.

Maybe it's time to remove that limit from the tool.

Greetings

Carsten





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

Reply via email to