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 08:59
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » DOS tidbit -- Initial values of internal registers in a COM file View 1,546 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
Initial values of internal registers in a COM file
1. CS, ES, PS, and SS all point to the PSP+0H field.
2. IP points to the PSP+100H field.
3. SP points to FFFFH; if the available memory is not 64K, it points to "current available memory byte count - 2"
4. The word at the top of the stack contains 0000H
5. CX contains the length of the COM file.
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 2004-03-28 00:00 ·  中国 浙江 杭州 华数宽带
高级用户
★★
科学家
Credits 693
Posts 270
Joined 2003-07-21 12:00
22-year member
UID 7321
Gender Female
Status Offline
Forum Jump: