Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!uunet!fernwood!portal!cup.portal.com!ekalenda From: ekalenda@cup.portal.com (Edward John Kalenda) Newsgroups: comp.os.msdos.programmer Subject: Re: yeah, how DO you do that? Message-ID: <43419@cup.portal.com> Date: 18 Jun 91 05:00:00 GMT References: <1991Jun15.045652.21497@ux1.cso.uiuc.edu> Organization: The Portal System (TM) Lines: 37 >Here is an interesting post from comp.compression. I would be interested >in creating the same effect. Does anyone know how I might be able to do >so in Turbo Pascal (or ASM)? > >While I am at it, a friend has shown me something else quite curious >and I have told him I would try to find out what is going on. . . > >Some programs have something embeded in them so that if you "type" >them, they will display the program name and the material will stop >scrolling on the screen and the DOS prompt will appear again. > >e.g. > >C:> type program.exe > >The Software >(c) 19xx The Software Co. > >C:> What you need to do is create an object file with the text string and link it ahead of all others. The string ends with a ^Z so TYPE will treat it as end-of-file. This assembly source should do it for SMALL model MSC programs. Change and experiment for others: _TEXT SEGMENT DB 'Program name go here',13,10 DB 'More text here',13,10 DB 26 _TEXT ENDS Ed ekalenda@cup.portal.com