Do you have it handy to send it back to me? I hava a dos version program and I do have a rom-dos and I would like to test it.
Here it is, from my old archives (when I was a Linux man using ROM-DOS and FreeDOS was DOS/C):
Can an application tell the difference if it is running in RD as opposed to MS-DOS or other? Is there a function call or API call or anything? (REF#980805-0006)
Yes, there is. RD has a special Int 21H, function 30H handler (normally Get DOS version). With a special "magic cookie" in certain registers, ROM-DOS responds with internal commands, one of which is "Which version are you?"
Specifics:
On Entry to Int 21H
AX=30DBH Int 21H get DOS version call (DB in AL indicates RD specific function)
CX=0000H must be set to 0
SI=B2D2H ID for ROM-DOS (verifies is REALLY is an RD specific function)
DI=0003H RD specific function # 3, Get ROM-DOS revision
On Exit: AX=0260H ROM-DOS revision (2.6) CX=B2D2H ID (use this to verify that ROM-DOS really set things) ES:BX= Pointer to revision string (do NOT change string!)
Product: ROM-DOS 6.22 Date Created: 8/5/98 10:13 Ref#: 980805-0006 Category: Problem Resolution Date Updated: 8/5/98 10:13
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel
