Board logo

标题: 关于DOS内存的一个问题 [打印本页]

作者: linwhwylb     时间: 2009-12-14 12:56    标题: 关于DOS内存的一个问题

我在DOS下运行一个DOS游戏的时候出现了错误,初步是内存分配的问题。用mem查看了一下,显示如下信息:

Memory Type         Total  =   Used   +   Free
----------------  --------   --------   --------
Conventional          640K       111K       529K
Upper                   0K         0K         0K
Reserved                0K         0K         0K
Extended (XMS)    1,833,66     4,336K   1,829,32
----------------  --------   --------   --------
Total memory      1,834,30     4,447K   1,829,85

Total under 1Mb       640K       111K       529K

Total Expanded (EMS)                 33,152K  (33,947,648 bytes)
Free Expanded (EMS)                  32,768K  (33,554,432 bytes)

Total Extended (XMS)                1,833,66 (1,877,671,936 byte
Free Extended (XMS)                 1,829,32 (1,873,231,872 byte

Largest executable program size         529K     (541,264 bytes)
Largest free upper memory block           0K           (0 bytes)
Available space in High Memory Area       5K       (5,312 bytes)
MS-DOS is resident in the high memory area.

以上信息有错误,一般来说UMB应该是384KB吧?而以上显示的为零。如何解决?谢谢!