Repository navigation
Commit 5bbf214
committed
mem: report DPMI memory
Show total, used and free DPMI memory and the largest free DPMI
block (int 31h AX=0500h), as separate lines under EMS rather than
as a row of the table: depending on the host, DPMI memory is either
taken from XMS or is a pool of its own, so adding it to the totals
could count it twice. Fields the host reports as -1 are skipped.
This makes memory held by the shell itself visible: under dosemu2
the stub's DPMI loader keeps a 16Mb heap for the whole session,
which shows up as ~19Mb used before any program is run.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b1a78a7 commit 5bbf214
1 file changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
194 | 213 | | |
195 | 214 | | |
196 | 215 | | |
| |||
951 | 970 | | |
952 | 971 | | |
953 | 972 | | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
954 | 1010 | | |
955 | 1011 | | |
956 | 1012 | | |
| |||
0 commit comments