---------------------------------------------------------------
Icon to Hex Translator
---------------------------------------------------------------
Version: 0.1 Date: 12jun2001 author: mantillo
---------------------------------------------------------------
Files: icon2hex.bat  - Batch file to use
       icon2hex.exe  - Win32 binary file (internal use only)
       icon2hex.c    - C source code
       icon2hex.txt  - This text file
       clean.ico     - A clean picture to paint on it
---------------------------------------------------------------
Description: Translates a picture file into asm/hex code,
             that you can use as icon for your self made
             Rex 6000 addins.
---------------------------------------------------------------
What you need: - Windows 32bit OS (like Windows 98)
               - Some kind of Rex Development Kit, or at least
                 a Z80 compatible assembler
               - To use it as icon on a Rex 6000, you need
                 a Rex 6000 (oh, really?)
---------------------------------------------------------------
How to create the picture: There is a clean picture file inside
                           the zip file called 'clean.ico'.
                           Just open it with notepad, you will
                           only see points ('.'), they stand for
                           white (or green, for Rex 6000
                           background!). If you want to paint
           		   a black pixel, just delete a '.'
                           and insert an 'o'. That is all!
---------------------------------------------------------------
How to use: Copy icon2hex files in a directory where your
            picture file is.
            Start a Windows 32bit OS (like Windows 98),
            press start button,
            press run,
            type 'command' + ENTER,
            move to the directory where the icon2hex files are
            (use 'cd' followed by SPACE and the location,
            something like 'c:\windows\temp'),
            type 'icon2hex.bat INPUTFILE OUTPUTFILE' + ENTER
            (INPUTFILE is the name of your picture file,
            OUTPUTFILE is a name you want to give the
            output file you want to use as icon,
            If everything works correctly, press 'ENTER' and
            assemble a little bit!
---------------------------------------------------------------
How it works: ts2is.bat sends INPUTFILE to ts2is.exe,
              ts2is.exe creates OUTPUTFILE:
              1. The new file starts with a "
              2. ts2is.exe reads every character of
                 INPUTFILE and checks if it is a
                 tabulator or carriage return (enter).
                 a) tabulator: ts2is.exe writes the
                    following 3 characters to OUTPUTFILE:
                    ","
                 b) carriage return: ts2is.exe writes the
                    following character to OUTPUTFILE:
                    "
                 c) none of them: ts2is.exe writes the
                    character taken from INPUTFILE to
                    OUTPUTFILE
              3. The new file ends with a "
---------------------------------------------------------------
Known Bugs: None (for now).
---------------------------------------------------------------
Notes: Used Compiler:          Borland C++ Compiler 5.5
       Used Operating Systems: Windows 98 & Rex OS (?)

This is no professional program and I am very new to C.
Version 0.1 of icon2hex has no error detection and was
written in a few hours, so please do not expect too much!
But it will work if you follow the instructions!

This tool is free and you can copy it as much as you want,
but only give it away with all files I put inside the
'icon2hex.zip' file.
You are not allowed to sell this program.
I have nothing to do with Xircom, Borland, Microsoft, Puma
Startfish or any other Company that developes software.
---------------------------------------------------------------
Contact: If you have any questions or want to report an
         error email me to: mantillo@onkelfuzzy.de and
         pease visit my website: http://www.onkelfuzzy.de !
---------------------------------------------------------------