Category : System Diagnostics for your computer
Archive   : CHKMEM11.ZIP
Filename : MEMCHK.PAS

 
Output of file : MEMCHK.PAS contained in archive : CHKMEM11.ZIP
program MEMCHK;

{ -----------------------------------------------------------------------------

MEMCHK - Display RAM Statistics.

(C) Copyright 1989, 1990 by William D. Hileman
Route 3, Box 467
Trenton, FL 32693
(904) 463-1680

and Knowledge Applied Technologies, Inc.
502 NW 75th Street, Suite #214
Gainesville, FL 32607

Version 1.00 January 21, 1989
Version 1.01 September 2, 1990

----------------------------------------------------------------------------- }

const

mask = '###,###';

procedure show_status;

var

code_seg,
sys_mem,
used_mem,
free_mem : real;
total_mem : integer absolute cseg:$02;

begin
code_seg:=cseg;
if code_seg<0 then
code_seg:=code_seg+65536.0;
sys_mem:=total_mem;
if sys_mem<0 then
sys_mem:=sys_mem+65536.0;
used_mem:=code_seg*16.0;
sys_mem:=sys_mem*16.0;
free_mem:=sys_mem-used_mem;
writeln;
write(form(mask,sys_mem/1000));
writeln(' bytes total memory');
write(form(mask,used_mem/1000));
writeln(' bytes used');
write(form(mask,free_mem/1000));
writeln(' bytes free');
end;

begin
textbackground(black);
textcolor(lightgray);
show_status;
end.


  3 Responses to “Category : System Diagnostics for your computer
Archive   : CHKMEM11.ZIP
Filename : MEMCHK.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/