Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Combined .com executable/DOS driver (Announce)

posted by Arjay, 13.06.2010, 16:11
(edited by Arjay on 13.06.2010, 16:28)

> Interesting, what driver you going to program?
For now a test "template" character driver which will do little more than display a messages, but one that should be straight forward for others to reuse. I may have another interesting related driver template (something else I am testing) which if I can get it to work I will release at the same time which is why I have also now coded an update to an old program of mine called RJDUMP (basically my equiv of tdump). My update has been to add the dumping of SYS driver headers including combined COM/SYS drivers:

* Note: version shown is a work in progress (ver # my change etc) *

q:\>rjdump int20.exe
RJDUMP v2.00a - (c)Copyright 1996-2010 Richard L. James

Filename                                              'int20.exe'

DOS File Size                                         0022h  ( 34. )

EXE Signature                                         5A4Dh  ( 'MZ' )
Load Image Size                                       0002h  ( 2. )
Relocation Table entry count                          0000h  ( 0. )
Relocation Table address                              001Ch  ( 28. )
Size of header record      (in paragraphs)            0002h  ( 2. )
Minimum Memory Requirement (in paragraphs)            0000h  ( 0. )
Maximum Memory Requirement (in paragraphs)            FFFFh  ( 65535. )
File load checksum                                    0000h  ( 0. )
Overlay Number                                        0000h  ( 0. )

Initial Stack Segment  (SS:SP)                    FFF0:0000
Program Entry Point    (CS:IP)                    FFF0:0100


q:\>rjdump uide.sys
RJDUMP v2.00a - (c)Copyright 1996-2010 Richard L. James

Filename                                              'uide.sys'

DOS File Size                                         2404h  ( 9220. )

DOS SYS Header
OfsAddrOfNextDriver                                   FFFFh  ( 65535. )
SegAddrOfNextDriver                                   FFFFh  ( 65535. )
DeviceAttributes                                      C800h  ( 51200. )
OfsAddrOfStrategy                                     C800h  ( 51200. )
OfsAddrOfInterrupt                                    1640h  ( 5696. )
DeviceName                                            'UDVD1   '

q:\>rjdump syscom.sys
RJDUMP v2.00a - (c)Copyright 1996-2010 Richard L. James

Filename                                              'syscom.sys'

DOS File Size                                         005Bh  ( 91. )

DOS SYS Header
OfsAddrOfNextDriver                                   36EBh  ( 14059. )
SegAddrOfNextDriver                                   FFFFh  ( 65535. )
DeviceAttributes                                      8000h  ( 32768. )
OfsAddrOfStrategy                                     0041h  ( 65. )
OfsAddrOfInterrupt                                    004Ch  ( 76. )
DeviceName                                            'SYSCOMv1'


I will release this version of RJDUMP as freeware with the templates (since releasing it will aid others in this task) however I have removed the Windows EXE dumping code for now (mainly because most of that code was NE related).


> And what will be the function of COM part?
Basically as above as I want to return to what I was working on, which was other programming utilities/libraries which I am using to rewrite RJDOS.

> I never tried to write a dos driver but it seems not sooo complicated :)
Indeed, basic drivers are not. However what Bret/Jack are doing is a lot more complex. Hence I thought I would focus my time releasing a driver dump utility (flags dumping is missing in the above at the moment) and some templates demoing Ninho's idea which will help test/get others involved with drivers. The reason I'm drawing the line there is for now my interests (and also time) are elsewhere but as I happened to be working on similar things I thought I would take a small slight step to one side of them to test this out.

 

Complete thread:

Back to the forum
Board view  Mix view
22781 Postings in 2123 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum