You are not logged in.


#1 2005-07-27 21:10:31

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Getting Memory; Memory Determination

Hi All,

Please give this a whirl. It is an EXE so it will run under Windows DOS box, and should be compatible with DOS' stdout so GETMEM > filename.txt should be good to go. Notice that E820 will not work from Windows, nor E801, oh, and memory probing won't be done if in a Windows DOS session, though PnP BIOS should determine a true memory reading from within Windows. For the exciting tell all story (running the program so it does everything) you should run it from a true DOS session so that E820, E801, and memory probing work. I would be interested in the corresponding text files and what machine specs it was run against, in Windows or just DOS, etcetera. Thanks!


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#2 2005-07-27 21:12:23

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Getting Memory; Memory Determination

OK, so it didn't upload my EXE... sad I don't have an archiver available here to upload it in an ZIP or other.


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#3 2005-07-27 21:14:25

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Getting Memory; Memory Determination

Another try...rename getmem.smiddy to getmem.exe.


Attachments:
Attachment Icon getmem.smiddy, Size: 8,001 bytes, Downloads: 803

- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#4 2005-07-27 21:25:17

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Getting Memory; Memory Determination

This is what it said about my mom's XP box (320mb RAM):

Code:

GETMEM - 0.17.021E Attempt to see what memory is installed... -smiddy

BIOS:
   15h:
     E820: <-- CF: Function is not supported.
         ----------------------------------------------------------------
   12h:
         : Lower Memory     :         000A0000h -        655,360 bytes.
   15h:
     E801: <-- CF: Function is not supported.
         ----------------------------------------------------------------
   12h:
         : Lower Memory     :         000A0000h -        655,360 bytes.
   15h:
     88  :
         : Extended Memory  :         00000000h -              0 bytes.
         ----------------------------------------------------------------
         : Total Memory     :         000A0000h -        655,360 bytes.
         ----------------------------------------------------------------
CMOS:
         : Lower Memory     :         000A0000h -        655,360 bytes.
         : Extended Memory  :         00100000h -      1,048,576 bytes.
         ----------------------------------------------------------------
         : Total Memory     :         001A0000h -      1,703,936 bytes.

System is already in V86 Mode; no memory probing.

PnP BIOS :   Base Address   -  Memory Length    - Type
                   00000000 -         000A0000h - 07 <<   Available to OS   >>
                   000F0000 -         00004000h - 32 <<  Read Only Memory   >>
                   000F4000 -         00004000h - 32 <<  Read Only Memory   >>
                   000F8000 -         00004000h - 32 <<  Read Only Memory   >>
                   000FC000 -         00004000h - 32 <<  Read Only Memory   >>
                   00100000 -         13F00000h - 07 <<   Available to OS   >>
                   FFFE0000 -         00020000h - 12 <<  Read Only Memory   >>
         ----------------------------------------------------------------
         : Total Memory     :         13FA0000h -    335,151,104 bytes.

Looks really good.
BTW: funny versioning  "0.17.021E"... tongue

/ Christoffer

Offline

 

#5 2005-07-28 18:12:47

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Getting Memory; Memory Determination

Thanks!

Yeah, the .021E is the number of times it has been compiled successfully. The .17 is the number of major functions within the application. Since it is 0. than I haven't released it yet. That would be 1.00...but I have two more BIOSes to add to the checks, SMBIOS and ACPI. ACPI is a variant of PnP so it shouldn't bee too difficult to implement, at least from what I've read. The SMBIOS will take me some time to look at and implement.


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#6 2005-07-31 02:10:34

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Getting Memory; Memory Determination

Here is from my machine under PC-DOS 3.30:

Code:

GETMEM - 0.17.021E Attempt to see what memory is installed... -smiddy

BIOS:
   15h:
     E820:   Base Address   -  Memory Length    - Type
         : 0000000000000000 - 000000000009FC00h -  01 <<   Available to OS   >>
         : 000000000009FC00 - 0000000000000400h -  02 <<   Reserved Memory   >>
         : 00000000000F0000 - 0000000000010000h -  02 <<   Reserved Memory   >>
         : 0000000000100000 - 0000000027EF0000h -  01 <<   Available to OS   >>
         : 0000000027FF0000 - 0000000000008000h -  03 << ACPI Reclaim Memory >>
         : 0000000027FF8000 - 0000000000008000h -  04 <<   ACPI NVS Memory   >>
         : 00000000FEC00000 - 0000000000001000h -  02 <<   Reserved Memory   >>
         : 00000000FEE00000 - 0000000000001000h -  02 <<   Reserved Memory   >>
         : 00000000FFF80000 - 0000000000080000h -  02 <<   Reserved Memory   >>
         ----------------------------------------------------------------
         : Total Memory     :               27F8FC00h -    670,628,864 bytes.
         ----------------------------------------------------------------
   12h:
         : Lower Memory     :         0009FC00h -        654,336 bytes.
   15h:
     E801: 
         : Extended Memory  :         27EF0000h -    669,974,528 bytes.
         ----------------------------------------------------------------
         : Total Memory     :         27F8FC00h -    670,628,864 bytes.
         ----------------------------------------------------------------
   12h:
         : Lower Memory     :         0009FC00h -        654,336 bytes.
   15h:
     88  :   
         : Extended Memory  :         03FFFC00h -     67,107,840 bytes.
         ----------------------------------------------------------------
         : Total Memory     :         0409F800h -     67,762,176 bytes.
         ----------------------------------------------------------------
CMOS:
         : Lower Memory     :         000A0000h -        655,360 bytes.
         : Extended Memory  :         03FFFC00h -     67,107,840 bytes.
         ----------------------------------------------------------------
         : Total Memory     :         0409FC00h -     67,763,200 bytes.
         ----------------------------------------------------------------
PROBE:
         : Extended Memory  :         27F00000h -    670,040,064 bytes.
         ----------------------------------------------------------------
         : Total Memory     :         27F9FC00h -    670,694,400 bytes.
         ----------------------------------------------------------------
PnP BIOS :   Base Address   -  Memory Length    - Type
         :         00000000 -         0009FC00h -  13 <<   Available to OS   >>
         :         0009FC00 -         00000400h -  10 <<  Read Only Memory   >>
         :         000F0000 -         00010000h -  10 <<  Read Only Memory   >>
         :         00100000 -         27EF0000h -  13 <<   Available to OS   >>
         :         27FF0000 -         00008000h -  10 <<  Read Only Memory   >>
         :         27FF8000 -         00008000h -  10 <<  Read Only Memory   >>
         :         FEC00000 -         00001000h -  10 <<  Read Only Memory   >>
         :         FEE00000 -         00001000h -  10 <<  Read Only Memory   >>
         :         FFF80000 -         00080000h -  10 <<  Read Only Memory   >>
         ----------------------------------------------------------------
         : Total Memory     :   27F8FC00h -    670,628,864 bytes.

Last edited by smiddy (2005-07-31 02:13:23)


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#7 2005-07-31 06:51:52

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Getting Memory; Memory Determination

Offline

 

#8 2005-07-31 06:52:52

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Getting Memory; Memory Determination

....and now I have 500 posts on this forum! big_smile

Offline

 

#9 2005-07-31 07:09:15

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Getting Memory; Memory Determination

bubach wrote:

....and now I have 500 posts on this forum! big_smile

Oh no! Perhaps we should celebrate! wink


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#10 2005-07-31 07:10:15

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Getting Memory; Memory Determination

BTW, once you have an executeable format I'll port this over...


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#11 2005-07-31 07:21:49

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Getting Memory; Memory Determination

Thanks, I'll try to hurry up (and at the same time have some quality)...

Offline

 

 

Board footer

Powered by PunBB
BOS homepage © Copyright 2005 Christoffer Bubach
Strict XHTML and valid CSS.