中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-15 00:56
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » Moderator Wengier, here's the DOS version source code you wanted [Original]
Printable Version  1,336 / 2
Floor1 Dark-Destroy Posted 2003-06-22 00:00
元老会员 Posts 3,551 Credits 8,312
I've posted it for you. I just made a slight modification, following your suggestion, and added the GNU GPL. The editor I used was TUBRO C 2.0

#include
#include
void main(void)
{
int ver,high,low;
clrscr();
ver=bdos(0x30,0,0);
high=(ver >>8)& 0x00ff;
low=(ver &0x00ff);
puts("This software is GNU GPL,Write By Dark-Destroy,2003";
printf("MS-DOS Version : %d.%d\n",low,high);
}


Floor2 Wengier Posted 2003-06-23 00:00
系统支持 Posts 10,521 Credits 27,736
Really short and tiny...
Floor3 Dark-Destroy Posted 2003-06-23 00:00
元老会员 Posts 3,551 Credits 8,312
Otherwise, how big did you think it would be??
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023