home *** CD-ROM | disk | FTP | other *** search
-
- {$V-}
- PROGRAM mainexam;
- {-demonstrate BigTurbo techniques}
-
- {first BigTurbo include file - before anything else}
- {$I main1.inc}
-
- {all your global variables and declarations are in following file}
- {$I exam.glo}
-
- {your own procedures follow}
-
- PROCEDURE mainproc1;
- {-demonstrate getting to and from the extra segment}
- BEGIN
- MakeLongCall('farproc2');
- END; {mainproc1}
-
- PROCEDURE mainproc2;
- {-demonstrate getting to and from the extra segment}
- BEGIN
- WriteLn('got to mainproc2 from far segment');
- END; {mainproc1}
-
- {second BigTurbo include file - after all other procedures}
- {$I main2.inc}
-
- BEGIN
- {load far code}
- LoadFarCode('farexam.com');
-
- {your code follows}
- WriteLn('in main program');
- WriteLn('calling local procedure mainproc1');
- mainproc1;
- WriteLn('back from mainproc1');
-
- END.