amead@s.psych.uiuc.edu (alan mead) (06/15/91)
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)? >Path: ux1.cso.uiuc.edu!uwm.edu!bionet!agate!usenet.ins.cwru.edu!ysub!psuvm!cunyvm!byuvm!byuvax!physc1!pollarda >From: pollarda@physc1.byu.edu >Newsgroups: comp.compression >Subject: Self Extracting Files >Message-ID: <309pollarda@physc1.byu.edu> >Date: 15 Jun 91 03:53:59 GMT >Lines: 45 >[self extracting archiver questions deleted] > >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:> > >... >Thanx a bunch, > >Art Pollard > >BitNet: PollardA@Xray.Byu.Edu Would it be as simple as placing the string 'The Software 0x10 0x13 (c) 1991 The Software Co. 0x1A' preceeded by a jmp 0x29 instruction? -alan mead : amead@s.psych.uiuc.edu
ekalenda@cup.portal.com (Edward John Kalenda) (06/18/91)
>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