                    T3E -- Text to Executable Converter


Have  you  ever wanted to create a small text file that can be displayed by
executing  it  ?   Up to now, you either had to use `type filename', or use
Txt2Exe.   The  latter  has  the  small  problem,  that only a limited size
textfiles could be included (I think it was 256 or so...).

Well,  Txt3Exe  doesn't  have that problem.  And, the header displaying the
text  is  as  short  as  can  be.  I have stripped the code to the absolute
minimum,  and reduced the hunk structure quite a bit, saving another couple
longwords.   Anyway,  the  resulting  file  will  still  be  crunchabl with
PowerPacker or Imploder (haven't tested any other packers).

The display program looks like this:

start:
	lea	dosname(pc),a1
	move.l	4.w,a6
	jsr	-552(a6)
	move.l	d0,a6
	jsr	-60(a6)
	move.l	d0,d1
	lea	text(pc),a0
	move.l	(a0)+,d3
	move.l	a0,d2
	jsr	-48(a6)
	move.l	a6,a1
	move.l	4.w,a6
	jsr	-414(a6)
	moveq	#0,d0
	rts
	
dosname:	dc.b	'dos.library',0
text:	dc.l	$aaaa5555

Including  the  hunk  information,  the resulting file size will be only 94
bytes larger than the text file.


                               Using T3E ...

To have a text-file mutated into an executable, just type:

	T3E <textfilename> <exefilename>

That's all. After that, there should be a new file, that can be executed,
crunched, deleted or anything.


                              The Source ...

Included is the C-source for T3E. It is compiled with Aztec C 3.6. I am
using a smaller printf-routine to reduced the size of T3E. If you want to
compile it, just add a line `#define PrintF printf' in the source and
remove the `-lmy' from the linker line.


                             Distribution ...

T3E  is  freeware.   Copying  and  posting  is strictly allowed, except for
commercial  reasons  (e.g.   german  PD-Sellers,  inclusion  in  commercial
products), which need a written permission from me.

If you have any comments, bug-reports, enhancement requests, contact me at
either of the following addresses:

      from any country:                   from the US:
      Garry Glendown                      Garry Glendown
      Güldene Kammer 35                   Box R
      W-6430 Bad Hersfeld                 APO NY 09141
      (Germany)

Telephone: 06621-77923 (HST/V32bis), give me a yell for voice call...

eMail:
      ..cbmvax!cbmger!inside!garry
      Garry@DGIHRZ01.BITNET
      Garry@fulmin.zer.sub.org
      Garry Glendown @ 2:243/43.999 (fido)


