Category : Pascal Source Code
Archive   : INTRFC61.ZIP
Filename : HEAD.PAS
{ Header declarations and dumper }
interface
uses globals,util,dump;
type
unit_flags = set of (ieee_reals,overlays,f4,f8,f16,f32,f64,f128);
header_ptr = ^header_rec;
header_rec = record
file_id: array[0..3] of char; { 0-3 }
i4, { 4-5 }
i6, { 6-7 }
ofs_this_unit, { 8-9 }
ofs_hashtable, { A-B }
ofs_entry_pts, { C-D }
ofs_code_blocks, { E-F }
ofs_const_blocks, {10-11}
ofs_var_blocks, {12-13}
ofs_mystery, {14-15}
ofs_unit_list, {16-17}
ofs_src_name, {18-19}
ofs_line_lengths, {1A-1B}
sym_size, {1C-1D}
code_size, {1E-1F}
const_size, {20-21}
reloc_size, {22-23}
vmt_size, {24-25}
var_size, {26-27}
ofs_full_hash: word; {28-29}
flags : unit_flags; {2A}
other : array[$2b..$3F] of byte; {2b-3F}
end;
var
header : ^header_rec;
procedure print_header;
implementation
procedure print_header;
var
i:integer;
begin
with header^ do
begin
writeln('file_id:':20,file_id);
writeln('i4:':20,hexword2(i4));
writeln('i6:':20,hexword2(i6));
writeln('ofs_this_unit:':20,hexword2(ofs_this_unit));
writeln('ofs_hashtable:':20,hexword2(ofs_hashtable));
writeln('ofs_entry_pts:':20,hexword2(ofs_entry_pts));
writeln('ofs_code_blocks:':20,hexword2(ofs_code_blocks));
writeln('ofs_const_blocks:':20,hexword2(ofs_const_blocks));
writeln('ofs_var_blocks:':20,hexword2(ofs_var_blocks));
writeln('ofs_mystery:':20,hexword2(ofs_mystery));
writeln('ofs_unit_list:':20,hexword2(ofs_unit_list));
writeln('ofs_src_name:':20,hexword2(ofs_src_name));
writeln('ofs_line_lengths:':20,hexword2(ofs_line_lengths));
writeln('sym_size:':20,hexword2(sym_size));
writeln('code_size:':20,hexword2(code_size));
writeln('const_size:':20,hexword2(const_size));
writeln('reloc_size:':20,hexword2(reloc_size));
writeln('vmt_size:':20,hexword2(vmt_size));
writeln('var_size:':20,hexword2(var_size));
writeln('ofs_full_hash:':20,hexword2(ofs_full_hash));
write('flags:':20);
if ieee_reals in flags then
write('N+':4);
if overlays in flags then
write('O+':4);
if flags - [ieee_reals,overlays] <> [] then
write('unknown flags ',hexbyte(byte(flags)));
writeln;
writeln('Other:');
dumpbytes(header^,$2b,$3f-$2a);
writeln;
end;
end;
end.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/