Re: [Freedos-devel] Errors in .COM loader

2025-06-05 Thread Bernd Böckmann via Freedos-devel
What is not yet included in my patch is reservation of some stack space. The original code mentions 256 bytes of stack (without adding it, or without adding PSP space). Do these 256 bytes come from MS-DOS? In this case I will add another 0x100 bytes to the allocation. Bernd > Am 05.06.2025 um

[Freedos-devel] Errors in .COM loader

2025-06-05 Thread Bernd Böckmann via Freedos-devel
There are errors in the .COM loader. Under some circumstances it allocates not enough memory. There is an issue at Github [1]. a) needed size is not rounded up to paragraph, but rounded DOWN. b) the loader allocates a maximum of ff0h paragraphs, but inclusive PSP 1000h paragraphs may be needed i