startup rules (Developers)
> When an MSDOS .exe or .com starts, I believe it is normal for it to free
> memory not in use.
True MZ executables (with the MZ header) can actually specify min alloc and max alloc in their MZ header; DOS will not allocate more memory than specified by the executable image size plus max alloc.
> I can implement an INT 21H extension (I have a bunch of them, under
> AH=F6h), and I believe MSDOS is designed to set the carry flag if it gets
> an INT 21H for a function that it doesn't recognize.
Actually, high functions (including service 71h subfunctions on many versions of DOS) will not set CY to indicate an unsupported function. Instead, they will set al to zero and leave CF unchanged. You can handle this case with an explicit stc before the int 21h in order to make sure you get CY if unsupported.
---
l
Complete thread:
- startup rules - kerravon, 24.11.2022, 22:47
- startup rules - kerravon, 24.11.2022, 23:04
- startup rules - ecm, 25.11.2022, 08:30
- startup rules - kerravon, 28.11.2022, 23:06
- startup rules - DosWorld, 29.11.2022, 01:21
- startup rules - kerravon, 29.11.2022, 02:24
- startup rules - DosWorld, 29.11.2022, 03:03
- startup rules - kerravon, 29.11.2022, 02:24
- startup rules - DosWorld, 29.11.2022, 01:21
- startup rules - kerravon, 28.11.2022, 23:06