clean dos extender executable format (Developers)
Hello kerravon,
> which are front-ends to INT 21H, AH=F6H, AL=3FH
> and INT 21H, AH=F6H, AL=3BH respectively.
> Any reason why I shouldn't do that?
Some considerations which you will almost certainly need to deal with at some point in time:
(1)
You probably want to decide early on how your a.out application is going to receive the argv[]
and envp[]
information. This will form part of the ABI "contract" between the OS (+ DOS extender) and applications, and you probably want the ABI to be stable.
The Linux IA-32 ABI places argv[]
and envp[]
on the stack at program startup, but if you prefer to create extra syscalls to do that, that is possible too. You also need to decide whether to split the command line arguments into separate words (i.e. argv[]
) at startup, and how (!) — or to leave the task to the application.
Whichever interface you decide on, try to stick to it.
(2)
The MZ loader stub will likely be needed to run your a.out program(s) precisely in those situations where the OS does not already understand your new proposed syscalls. This means you will need to implement the new "syscalls" inside the DOS extender, for use in your protected mode app.
(CauseWay and DOS/4G both already implement an additional bunch of functions under int 0x21
, ah
= 0xff
.)
Thank you!
---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"
Complete thread:
- clean dos extender executable format - kerravon, 07.01.2023, 03:56
- clean dos extender executable format - kerravon, 07.01.2023, 04:18
- clean dos extender executable format - DosWorld, 08.01.2023, 15:51
- clean dos extender executable format - kerravon, 08.01.2023, 18:15
- clean dos extender executable format - DosWorld, 08.01.2023, 19:09
- clean dos extender executable format - tkchia, 08.01.2023, 19:11
- clean dos extender executable format - kerravon, 08.01.2023, 19:36
- clean dos extender executable format - tom, 09.01.2023, 18:49
- clean dos extender executable format - kerravon, 09.01.2023, 19:51
- clean dos extender executable format - tom, 09.01.2023, 18:49
- clean dos extender executable format - DosWorld, 09.01.2023, 00:24
- clean dos extender executable format - kerravon, 09.01.2023, 02:32
- clean dos extender executable format - DosWorld, 09.01.2023, 03:22
- clean dos extender executable format - kerravon, 09.01.2023, 03:43
- clean dos extender executable format - DosWorld, 09.01.2023, 03:22
- clean dos extender executable format - kerravon, 09.01.2023, 02:32
- clean dos extender executable format - kerravon, 08.01.2023, 19:36
- clean dos extender executable format - kerravon, 08.01.2023, 19:31
- clean dos extender executable format - tkchia, 08.01.2023, 19:11
- clean dos extender executable format - DosWorld, 08.01.2023, 19:09
- clean dos extender executable format - kerravon, 08.01.2023, 18:15
- clean dos extender executable format - tkchia, 08.01.2023, 18:10
- clean dos extender executable format - kerravon, 08.01.2023, 18:37
- clean dos extender executable format - tkchia, 08.01.2023, 19:05
- clean dos extender executable format - kerravon, 08.01.2023, 19:50
- clean dos extender executable format - tom, 08.01.2023, 20:35
- clean dos extender executable format - kerravon, 08.01.2023, 20:46
- clean dos extender executable format - kerravon, 08.01.2023, 22:51
- clean dos extender executable format - kerravon, 08.01.2023, 20:46
- clean dos extender executable format - tkchia, 09.01.2023, 00:59
- clean dos extender executable format - DosWorld, 09.01.2023, 03:13
- clean dos extender executable format - tkchia, 09.01.2023, 10:49
- clean dos extender executable format - DosWorld, 09.01.2023, 03:13
- clean dos extender executable format - tkchia, 09.01.2023, 11:11
- clean dos extender executable format - tom, 08.01.2023, 20:35
- clean dos extender executable format - kerravon, 08.01.2023, 19:50
- clean dos extender executable format - glennmcc, 08.01.2023, 19:10
- clean dos extender executable format - tkchia, 08.01.2023, 19:05
- clean dos extender executable format - kerravon, 08.01.2023, 18:37
- clean dos extender executable format - kerravon, 08.01.2023, 19:26
- clean dos extender executable format - CandyMan, 09.01.2023, 19:23