Category : Files from Magazines
Archive   : PJ55.ZIP
Filename : EQUATES.PAS

 
Output of file : EQUATES.PAS contained in archive : PJ55.ZIP
{ A short program used to generate values used by DEMO.PAS
by John J. Newlin, Page 28, Volume 5.5, Programmer's Journal

EQUATES.PAS
Copyright 1987 by John J. Newlin, 4060-228 Rosenda Court, San
Diego, CA 92122
}
(* Program to derive values to be coded into
KERNEL.ASM as equates. *)

{$I demo.var}

function hex(n : integer) : str4;
var h : array[0..$F] of char;
begin
h := '0123456789ABCDEF';
hex := h[hi(n) div 16]+h[hi(n) mod 16]+h[lo(n) div 16]+h[lo(n) mod 16];
end;

begin
writeln('activate equ ',hex(ofs(activate)),'H');
writeln('demo_main equ ',hex(ofs(demo_main)),'H');
writeln('emm_handle equ ',hex(ofs(emm_handle)),'H');
writeln('loaded_in_emm equ ',hex(ofs(loaded_in_emm)),'H');
end.



  3 Responses to “Category : Files from Magazines
Archive   : PJ55.ZIP
Filename : EQUATES.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/