Hallo Eric,

does FreeDOS already support int 2f.122f, set DOS version number?

Now it does - see patch below ;-)

We already had a similar function on another API (int 21 somewhere), but using int 2f.122f would be DOS 4+ compatible and nice for a SETVER...

See the updated CVSPATCH.TXT and KERNEL.SYS at http://linux.tu-varna.acad.bg/~lig/freedos/kernel/


Regards,
Lucho

P.S. I'm not responsible for damages to the following patch caused by my e-mail client, Opera! For the real patch, see CVSPATCH.TXT. Needless to say that it's for the unstable (DANGEROUS :) branch.

--- cvs/kernel/kernel/inthndlr.c        2004-07-25 20:12:50.000000000 +0200
+++ src/kernel/kernel/inthndlr.c        2004-08-16 20:36:32.000000000 +0200
@@ -1876,6 +1874,19 @@
                                    doesn't work!! */
       break;

+    case 0x2f:
+      if (r.DX)
+      {
+        os_setver_major = r.DL;
+        os_setver_minor = r.DH;
+      }
+      else
+      {
+        os_setver_major = os_major;
+        os_setver_minor = os_minor;
+      }
+      break;
+
     default:
       if (r.AL <= 0x31)
       {

--- cvs/kernel/kernel/main.c    2004-07-24 19:02:42.000000000 +0200
+++ src/kernel/kernel/main.c    2004-08-16 20:50:38.000000000 +0200
@@ -267,6 +267,7 @@

   LoL->os_setver_major = LoL->os_major = MAJOR_RELEASE;
   LoL->os_setver_minor = LoL->os_minor = MINOR_RELEASE;
+  LoL->rev_number = REVISION_SEQ;

   /* move kernel to high conventional RAM, just below the init code */
 #ifdef __WATCOMC__


------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to