Exiting from DOS programs
-
M-Saunders
- Member

- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
Exiting from DOS programs
Lo all,
I'm writing a small 16-bit operating system in assembler, with rudimentary DOS compatibility (http://mikeos.sourceforge.net). Small DOS COM programs and games run OK, but most of them don't exit back to the OS correctly.
As I understand it, there are three ways a DOS program can hand control back to the OS:
1) Int 20h
2) Int 21h with AH = 0
3) Int 21h with AH = 4Ch
My OS handles these fine, and I've written test DOS COM programs to confirm they work. However, some things just refuse to quit, or end up with a black screen.
Is there anything else I should be aware of? Do some really old (as in, MS-DOS 1.x era) programs just JMP back somewhere into the OS? Or is there another method of exiting DOS programs that I'm not handling?
Sorry if the solution is staring me in the face, but I'm stumped!
Thanks in advance,
Mike
I'm writing a small 16-bit operating system in assembler, with rudimentary DOS compatibility (http://mikeos.sourceforge.net). Small DOS COM programs and games run OK, but most of them don't exit back to the OS correctly.
As I understand it, there are three ways a DOS program can hand control back to the OS:
1) Int 20h
2) Int 21h with AH = 0
3) Int 21h with AH = 4Ch
My OS handles these fine, and I've written test DOS COM programs to confirm they work. However, some things just refuse to quit, or end up with a black screen.
Is there anything else I should be aware of? Do some really old (as in, MS-DOS 1.x era) programs just JMP back somewhere into the OS? Or is there another method of exiting DOS programs that I'm not handling?
Sorry if the solution is staring me in the face, but I'm stumped!
Thanks in advance,
Mike
-
M-Saunders
- Member

- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
-
M-Saunders
- Member

- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
Remember Google Code Search is your friend 
Just click on the link at the top of this page
.
http://digg.com/security/MS_DOS_6_0_app ... ode_Search
Just click on the link at the top of this page
http://digg.com/security/MS_DOS_6_0_app ... ode_Search
-
M-Saunders
- Member

- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
-
M-Saunders
- Member

- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
I heard he got a Xbox and other goody's out of itCandy wrote:Wouldn't try that. A guy named Mike Rowe got into trouble choosing the most obvious name.M-Saunders wrote:Until I create the company Mike-o-Soft...
M
See here: http://itvibe.com/news/1217/
I would say he got a bad deal, as Lindows got 20 Million
http://www.geeknewscentral.com/archives/002945.html

