home *** CD-ROM | disk | FTP | other *** search
- Besides this file, READTHIS, there are 2 other files in this archive. They
- are CUT-HPL.COM and the assembly language source code named CUT-HPL.ASM.
- The program was assembled with MS macro asm ver 4.0.
-
- CUT-HPL.COM will decompress and print a Dr. Halo II CUT file on a HP LaserJet
- printer. It is required that your Dr. Halo II program be configured with an
- X axis parameter of 800, and a Y axis parameter of 1050, at a resolution of
- 100 dots per inch. Mine is also configured to center the image, although I
- don't think that is critical for operation of this program. Also you should
- know that when the Halo setup program asks you if you want to reverse the
- print colors, you should not choose the default value. Otherwise you get
- white lines on a field of black and you waste a lot of toner in your expensive
- cartridge. To use different X and Y parameters you would have to modify the
- source code and reassemble it. The source is also setup to be easily modified
- to make multiple copies. The bit dump takes about 8 minutes on a slow IBM PC
- but after the first print, multiple copies are produced very quickly. I
- could have added a command line parameter for this feature but I didn't feel
- like the brain strain.
-
- HOW TO USE IT:
- Once the cut file is created Dr. Halo isn't needed to print the picture.
- This would be a nice way to send someone a birthday card or flip them the bird
- 50 times in Laser style.
- The cut file to print must be in the working directory.
- Suppose the cut file is named FALCON.CUT
- To print it use the command CUT-HPL FALCON
- The program will add the file extension of .CUT
-
- The program does NOT check to see if your printer is on-line. You will get the
- familiar Abort, Retry, Ignore? message if it is off line. Just press R if so.
-
- You can abort a print job by pressing any key during printing. The printer
- will do a form feed and reset to text mode.
-
- If you dump text into the Laser Jet without a form feed, you can then print
- graphics over it. The reverse don't work. Sending text will eject the
- graphics print first.
-
- CUT file format details for the tech minded:
- The first 2 bytes of the file (reversed) = the width in bits of the virtual
- screen.
- The 3rd and 4th bytes (reversed) = the height in bits of the virtual screen.
- The 5th and 6th bytes are not used, and = 00
- The rest of the file consists of strings of data blocks.
-
- DATA BLOCK format:
- The first 2 bytes (reversed) = the number of following bytes that describe
- one full line of the virtual page. This number includes the 00 byte which
- signals the end of a data block. My programs don't look at the first 2 bytes
- of a data block. They just look for the 00 to mark the end of a block.
-
- The 3rd byte of a DATA BLOCK is the first of many "flag" bytes. If bit 7 of
- this byte is set (if the byte is > 7Fh), then bits 0 through 6 of this byte
- equal the number of times to repeat the "data" indicated by the single byte
- following. Example
- flag byte = F7
- data byte = 01
-
- F7 AND 7F = 77 hex, 119 decimal. So F7 01 means place 119 1's (single bits)
- on the map line.
- F7 00 would mean place 119 0 bits on the map line.
-
- If the flag byte is less than 80 hex then... this is hard to explain
- example: flag byte = 05 data following is 01 00 01 00 01
- what this means is there are 5 "data" indicators following the 05 byte.
- In this case it means place one 1 bit, one 0 bit, one 1 bit, one 0 bit, and
- one 1 bit on the bit map line.
-
- If the flag byte = 00 then you have reached the end of line. The next byte
- is the first byte of the next DATA BLOCK, and the system repeats.
-
- The program dumps each 100 byte bit map line to the printer one at a time.
-
- There is no End of file flag byte.
-
- This archiving method is very inefficient. PKARC compresses a cut file by
- about 90%.
-
- Contributed to the public domain by author, Jack Garland, St. Louis, Mo.
- in the true "Hacker Spirit".
-
- A NOTE TO OTHER HACKERS:
- Why is it that you don't usually include source code in your public domain
- contributions?
- A utility like this will not make anybody rich. Peter Norton beat us to the
- punch a long time ago. Source code can teach beginners and experienced
- programmers won't have to re-invent the wheel from the ground up to put on
- a new set of hub caps.
-
- There should be another ARC file on this BBS named HALO-PRT.ARC
- This is the same program for Epson dot printers & compatibles.
-