I have 3 questions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Cpcdos
Member
Member
Posts: 35
Joined: Sat Feb 02, 2013 4:16 pm
Location: France [Lyon]

I have 3 questions

Post by Cpcdos »

Hello
i'm french, sorry for "the orthograph"

I will would create my new bootable kernel and i would it is able to launch .com and .exe programs (DOS) (i would make second ms-dos)
I have a big big big base (http://cpcdos.fr.nf/ see Photos) but i would re-write boot base..!!


I have 3 questions (with nasm or other) :

- How integrate all DOS functions[int21] (or emulation) with my simple bootable kernel (worked at home) ? a module ? include ? library ?
- If is possible to integrate DOS functions, how to read MZ headers DOS ?
- If is possible how to multitasking for execute this DOS programs independently (as DesqView!!!!!)


ps: i know freedos


FAVIER Sébastien
FAVIER Sébastien
Sorry for my bad bad English level, I'm young French studient .. :)
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: I have 3 questions

Post by Gigasoft »

DOS MZ headers and DOS functions are well documented. For example, try MSDN or Ralph Brown's interrupt list. And if you already have a multitasking protected mode operating system, applying multitasking to DOS programs is straightforward. You will probably need to emulate the PIT and the keyboard, as many programs require it. Some programs will require DPMI.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: I have 3 questions

Post by Brendan »

Hi,
Gigasoft wrote:You will probably need to emulate the PIT and the keyboard, as many programs require it. Some programs will require DPMI.
For 100% DOS compatibility, you'd need something a lot closer to whole system emulation. A large amount of DOS software (especially games) bypass DOS and mess with devices (video, sound, mouse, etc) directly.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply