China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 09:15
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » DOS Tidbit--Characteristics of COM Files View 2,009 Replies 1
Original Poster Posted 2002-10-22 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
1。Only one segment can be set.
2。Program length must be less than 64K
3。100H of space must be reserved, and there must be an executable instruction at the beginning.
4。Subroutines must have the near procedure attribute (near)
5。If there are multiple object modules, all modules must have the same code segment name and class name (class), and be assigned the public attribute (public); the main module should have an entry pointer at 100H and be linked first.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 2 Posted 2003-06-30 00:00 ·  中国 广东 深圳 龙岗区 电信
中级用户
★★
Credits 356
Posts 54
Joined 2003-04-15 00:00
23-year member
UID 1552
Gender Male
Status Offline
After reading it, I learned a little something. In WIN, for some executable commands you don't need to look at
the extension (usually extensions are hidden); if it is larger than 64K, you can be sure it is .EXE and not
>.COM!
Support!!!
Forum Jump: