Re: [Freedos-kernel] Re: int 2f.122f...

2004-09-09 Thread Luchezar Georgiev
If I right remember, Lucho's patch affect os_major and os_minor.
No, it affects os_setver_m??or.
---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel



[Freedos-kernel] Re: int 2f.122f...

2004-09-08 Thread Arkady V.Belousov
Hi!

8-Сен-2004 15:52 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]:

EA> Hi, you probably found a bug then: I am sure the intention was
EA> to replace the freedos-specific function by int 2f.122f...

 No, if this is bug, then this is bug only in history.txt. Also, no one
was says about replacing FD specific function. As I understand, Lucho was
adds INT2F/122F only by your pressure.

EA> It would affect int 21.30 result, not int 21.3306 result, and

 If I right remember, Lucho's patch affect os_major and os_minor. Thus,
yes, there _is_ bug (same as bug with VERSION= in config.c), because should
be affected os_setver_major and os_setver_minor. Probably, *_major and
*_minor should be renamed to os_major/os_true_major and
os_minor/os_true_minor, to make less confusions later.

 Anyway, I think, INT2F/122F should be removed _or_ it should replace FD
specific function (INT 21/33FC).

EA> I hope that it actually works ;-).

PS: I return this topic back to group, because it may be interested for
others.

PPS: Eric, you often move threads from groups to private email. Please, do
this only for topics, which is interested only for private persons.




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Re: Int 2f.122f already supported?

2004-08-16 Thread tom ehlert
Hello Luchezar,

> Hallo Eric,

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

> Now it does - see patch below ;-)

according to RBIL:
INT 2F U - DOS 4.x internal - SET DOS VERSION NUMBER TO RETURN

AX = 122Fh
DX = DOS version number (h = return true DOS version)

note the 'internal', 'true version', and '4.x' ( not 4+ )

I'd recommend to implement setver in a reasonable fashion :((

tom










---
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


[Freedos-kernel] Re: Int 2f.122f already supported?

2004-08-16 Thread Luchezar Georgiev
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.c2004-07-25 20:12:50.0 +0200
+++ src/kernel/kernel/inthndlr.c2004-08-16 20:36:32.0 +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.c2004-07-24 19:02:42.0 +0200
+++ src/kernel/kernel/main.c2004-08-16 20:50:38.0 +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