Category : Files from Magazines
Archive   : VOL8N7.ZIP
Filename : ALIGN.PAS

 
Output of file : ALIGN.PAS contained in archive : VOL8N7.ZIP
PROGRAM Alignment_demo;
{$A-}
VAR
X1 : Byte;
Y1 : Byte;
Z1 : Word ABSOLUTE X1;
VAR
X2 : Byte;
VAR
Y2 : Byte;
Z2 : Word ABSOLUTE X2;
dummy : byte;
BEGIN
FillChar(X2, Ofs(dummy) - Ofs(X1), $FF);
Z1 := $0101;
Z2 := $0202;
WriteLn('X1=',X1,' Y1=',Y1);
WriteLn('X2=',X2,' Y2=',Y2, ' (Y2 should equal 2)');
WriteLn('Note that the offsets below are all EVEN.');
WriteLn('Offset of X1=',Ofs(X1));
WriteLn('Offset of X2=',Ofs(X2));
WriteLn('Offset of Y2=',Ofs(Y2));
END.


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