Dec 232017
"The Worlds Best" TSR EPSON printer control program. Or so it says.
File NERN4.ZIP from The Programmer’s Corner in
Category Printer Utilities
“The Worlds Best” TSR EPSON printer control program. Or so it says.
File Name File Size Zip Size Zip Type
LQ850SET.COM 3712 1288 deflated
PRINTSET.COM 3712 1297 deflated
READ.ME 21723 7333 deflated
SETEPSON.COM 3712 1287 deflated
SETMX100.COM 3712 1319 deflated
STEPSON1.COM 3712 1298 deflated

Download File NERN4.ZIP Here

Contents of the READ.ME file

This may not be the best memory resident printer utility, but it sure is a
good one. I have included an additional file 'LQ850SET.COM' which I created
following the instructions below. It was easy, even though I'd never used
debug or the Norton Utility before. I've used this program on two 386 systems
(Compaq and ALR) and with a variety of TSRs and have found no problems.


This program was found on a BBS and was originally named SETEPSON.COM
There was no documentation with the program, and the author is not
known. After using the program, it became apparant that this is a
program that every person with a printer must have.

The original program was for a Epson FX, but I had a Epson MX, so
with a little work, and the Norton Utilities, SETMX100 was created.

Passing the program around among friends got many positive responses,
and many helpful suggestions on how to customize it for various
printers and configurations. These files are a result of all of the
input from people who made the program suit their needs.

My compliments to the author, whoever and wherever he (she) is !

Additional comments, suggestions, and modifications are encouraged
and may be left on the PALLADIN BBS...415-332-1655

Using Norton Utilities, Debug, or your favorite snooping tool take a look
at the file and you'll see something that looks like the stuff below.

The numbers on the left are in HEX and the stuff on the right is regular
type mixed with some graphic characters. If you make changes in the HEX
section on the left....the part on the right hand side will be changed
automatically...or visa versa, IF you are using Norton Utilities, no
guarantees if you are using other programs.

You can change the messages that appear in the windows as well as the
escape codes that appear below. Please note that the blank spaces (HEX 20)
have been removed to make seeing the codes easier. The real listing that
you will see will have lots of 20's around the escape codes.

There are two tables...One is what the program will look like if you use
the Norton Utilities and the other is what the table will look like if
you use the regular DOS DEBUG.


31BA2053 65742053 4B495020 50455246 204F4E20 20202020 1 Set SKIP PERF ON
BA2020BA 462D32BA 20536574 20534B49 50205045 5246204F F-2 Set SKIP PERF O
46462020 2020BA20 20BA462D 33BA2055 6E692D64 69726563 FF F-3 Uni-direc
74696F6E 616C204F 4E202020 BA2020BA 462D34BA 20556E69 tional ON F-4 Uni
2D646972 65637469 6F6E616C 204F4646 2020BA20 20BA462D -directional OFF F-
35BA2050 61706572 2D6F7574 2053656E 736F7220 4F4E2020 5 Paper-out Sensor ON
BA2020BA 462D36BA 20506170 65722D6F 75742053 656E736F F-6 Paper-out Senso
72204F46 4620BA20 20BA462D 37BA206E 6F742075 73656420 r OFF F-7 not used
20202020 20202020 20202020 BA2020BA 462D38BA 206E6F74 F-8 not
20757365 64202020 20202020 20202020 2020BA20 20BA462D used F-
39BA206E 6F742075 73656420 20202020 20202020 20202020 9 not used
BA2020BA 463130BA 206E6F74 20757365 64202020 20202020 F10 not used
20506755 70202020 20202045 53432020 20202020 20475241 PgUp ESC GRA
50484943 202D2050 67446E20 20202074 6F206578 69742020 PHIC - PgDn to exit
20200707 07070707 07070707 07070707 07070707 07070707

****************************************************** DONE
FIRST MENU STARTS HERE----------->1B40 23 * ERROR [email protected]#
1B0F 23 1B34 23 1B57 0123 * # 4# W#
1B2D 0123 1B53 0123 1B53 0023 * -# S# S.#
1B53 010F1B331023 1B45 23 1B47 23 * S3#E# G#
M2->1B41 1823 1B33 1E23 1B30 23 * A# 3# 0#
1B41 0823 * A#
1B41 0623 0A23 1B4A 6C23 * A# # Jl#
1B4A D823 0C23 1B40 23 * J# # @#
M3->1B4E 0623 1B4F 23 1B55 0123 * N# O# U#
1B55 0023 1B39 23 1B38 23 * U.# 9# 8#
1B40 23 1B40 23 1B40 23 * @# @# @#
1B40 23 * @# PSQRVW..


000220 20 43 4F 4E 46 49 47 55-52 41 54 49 4F 4E 20 20 CONFIGURATION
000230 20 20 20 20 20 20 20 C9-CD CD CD CB CD CD CD CD
000250 CD CD BB 20 20 BA 46 2D-31 BA 20 54 48 45 20 42 F-1 THE B
000260 49 47 20 41 57 41 41 59-2E 2E 2E 2E 20 20 20 20 IG AWAAY....
000270 BA 20 20 BA 46 2D 32 BA-20 43 4F 4D 50 52 45 53 F-2 COMPRES
000280 53 45 44 20 20 20 20 20-20 20 20 20 20 20 BA 20 SED
000290 20 BA 46 2D 33 BA 20 49-54 41 4C 49 43 53 20 20 F-3 ITALICS
0002A0 20 20 20 20 20 20 20 20-20 20 20 20 BA 20 20 BA
0002B0 46 2D 34 BA 20 45 58 50-41 4E 44 45 44 20 20 20 F-4 EXPANDED
0002C0 20 20 20 20 20 20 20 20-20 20 BA 20 20 BA 46 2D F-
0002D0 35 BA 20 55 4E 44 45 52-4C 49 4E 45 20 20 20 20 5 UNDERLINE
0002E0 20 20 20 20 20 20 20 20-BA 20 20 BA 46 2D 36 BA F-6
0002F0 20 53 55 42 73 63 72 69-70 74 20 20 20 20 20 20 SUBscript
000300 20 20 20 20 20 20 BA 20-20 BA 46 2D 37 BA 20 53 F-7 S
000310 55 50 45 52 73 63 72 69-70 74 20 20 20 20 20 20 UPERscript
000320 20 20 20 20 BA 20 20 BA-46 2D 38 BA 20 4D 49 43 F-8 MIC
000330 52 4F 20 28 44 6F 75 62-6C 65 20 73 74 72 69 6B RO (Double strik

000970 07 07 07 07 07 07 07 07-07 07 20 20 44 4F 4E 45 DONE
000980 20 20 20 45 52 52 4F 52-20 20 20 55 4E 41 56 41 ERROR UNAVA
MENU 1 ------>1B 40 23 1B 0F 23 [email protected]# #
0009A0 1B 34 23 1B 57 01 23 4# W#
0009B0 1B 2D 01 23 1B 53 01 23 -# S#
0009C0 1B 53 00 23 1B 53 01 0F 1B 33 S # S3
0009D0 10 23 1B 45 23 1B 47 23 #E# G#
MENU 2------->1B 41 18 23 1B 33 1E 23 A# 3#
0009F0 1B 30 23 1B 41 08 23 0# A#
000A00 1B 31 23 1B 41 06 23 1# A#
000A10 0A 23 1B 4A 6C 23
000A20 1B 4A D8 23 0C 23 J# #
MENU 3------->1B 4E 06 23 1B 4F 23 N# O#
000A40 1B 55 01 23 1B 55 00 23 U# U #
000A50 1B 39 23 1B 38 23 9# 8#
000A60 1B 40 23 1B 40 23 @# @#
000A70 1B 40 23 1B 40 23 @# @#
000A70 1B 40 23 1B 40 23 @# @#

Now for the fun.....

Check your printer manual and find out what the escape codes are for your
particular printer....they may be the same as the ones above, or they may
be different.

Bring up the program by pressing Alt & Right up-shift and press pgdn to
bring MENU 1 on the screen. Then PrtSc the first menu, go to the second
menu, print it and finally the third.

Use Norton or Debug to get into the program and change the escape codes
to match the functions in the MENUS to correspond to your escape codes.

It would be a good idea to do these alterations on a copy of the program
because you are sure to make a mess of changing the codes the first try.

You can also change the MENUS themselves if you want to. Just make sure
that you keep the spacing within the boxes EXACTLY the same after you make
whatever changes you want.



SETEPSON.COM is the original version

STEPSON1.COM is a revise of the original that has a little
different menu, and some added features.

SETMX100.COM is for an EPSON MX series, where the other two are
for the FX series.


More Customization:

PRINTSET programs can be changed to better suit each individual
environment. Things that can be changed are:

Window Color: Normally white background with black letters.
Activation Keys: Normally Alt with Right Shift
Printer Port: Normally LPT1:
Message Location: Normally middle of the 13th line

You will need your DOS diskette, specifically DEBUG.COM to accomplish
these changes.

Then type DEBUG followed by the COMPLETE NAME (that is, include the
.COM extention) of the SetEpson program to customize.

For example, let's say we have an NEC 3550:


If you are unfamiliar with DEBUG, you will soon see that is is very
arcane. Just follow the commands as you see them here, though, and
you should be successful. You won't need to understand what you see,
just be able to compare it to what is given here.

To Change Window Color:

This is the simplest to do. If you have a color monitor, you can
adjust the color that your copy of PRINTSET uses. Monochrome
monitors have a little smaller selection, but they too can control
the `color' that PRINTSET uses.

First, choose the colors you want: you will need to choose a
foreground and background color. Here's a table.

# Color Monochrome users: You only have
--- ------- choices of Black (0,) Underline (1,)
0 Black Normal Intensity (2-7,) and High
1 Blue (Underline) Intensity (8-F) foregrounds, and
2 Green your background is either black
3 Cyan (Pale Blue) or white (7,F)
4 Red
5 Magenta
6 Brown/Orange Foregrounds can be any of the
7 White colors to the left. Background
colors can only be 0-7. If you
8 Grey (Bright Black) choose 8-F, you will NOT get
9 Bright Blue bright colors, but blinking
A Bright Green foreground colors.
B Sky Blue (Bright Cyan)
C Pink (Bright Red)
D Violet (Bright Magenta) Choose the colors you want, and
E Yellow (Bright Brown) make a note of the `number' assoc-
F Bright White iated. We'll use it in a sec.

Now, from the DEBUG prompt, type the following command:

-E 10F <

You should see this:

xxxx:010F 70._

where xxxx is anything, and the cursor is after the dot. Now,
Type in the `number' of the BACKGROUND color, followed by the
`number' of the foreground color. For example, say we chose a
foreground of bright white, with a blue background. That should
give you 1F. The 1 is the background color, and F is the
foreground. When you have typed these two numbers in, press <

Note: When I say numbers, ignore the fact that some of them are
A, B, C, D, E, or F. To the computer, they're numbers too -- it
is perfectly acceptible to call 1F a number in DEBUG.

To make sure, type what follows the dash:

-D 10F 10F <

You should see

xxxx:010F ?? (where ?? is your number...)

That's all it takes to change the color. If that's all you
want to customize, go to the "I'm Done" section below.

To Change Activation Keys:

If you have SideKick, you know that it is activated by pressing
the Ctrl and Alt keys quickly at the same time. Other memory
resident programs use these keys also. PRINTSET is no
exception. If you find that PRINTSET conflicts with another
memory resident program, you may have to change the Activation
Keys. Here's how.

Issue the following command: (From here on, understand that you
need to follow these commands with a <)

-U B9E BA5

You should see the following:

xxxx:0B9E A01700 MOV AL,[0017]
xxxx:0BA1 2409 AND AL,09 <- The 09's may be
xxxx:0BA3 3C09 CMP AL,09 <- some other number
xxxx:0BA5 751A JNZ 0BC1

If you don't see this code, panic, get out of DEBUG (the Q
command,) contemplate the magnitude of you sins, and try again
when you feel up to it. Otherwise...

You need to choose the activation sequence. You may choose
Key #
----- ---
Alt 8
Ctrl 4
Left Shift 2
Right Shift 1

What you need to do is choose two or three of these keys, and
add up the numbers associated with them. This should give you
an number between 1 and 15. If your number is above 9, you will
need to substitute a letter for that number. Here's the table
to use:
If you have got: 10 11 12 13 14 15
Then you want: A B C D E F

Now. Remember the keys you decided on. You will need to push
all of them simultaneously to get your copy of PRINTSET to

If you're interested, you can see why the default activation
keys are Alt and the right Shift key: those 09's you saw up
there are the codes for Alt (8) and Right Shift (1); 8 + 1 = 9.

To change the keys, you must issue two commands. They are:

-E BA2 ??
-E BA4 ??

Let's make sure that you got it. Type the command below.

-U B9E BA5

You should see the following:

xxxx:0B9E A01700 MOV AL,[0017]
xxxx:0BA1 2409 AND AL,?? <- The ??'s are the
xxxx:0BA3 3C09 CMP AL,?? <- number you chose.
xxxx:0BA5 751A JNZ 0BC1

Again, If you don't see this code, panic, get out of DEBUG (the
Q command.) Then try again.

That's it. If you have nothing else to customize, go to the
"I'm Done" section below.

To Change Printer Ports

If you have only one printer, you won't need to do this; but if
you have two or more, and want a version of PRINTSET to work one
of the other printers, something needs to be done.

For example, I have an Epson and a Juki, attached to ports Lpt1
and 2, respectively. I have two copies of PRINTSET, one called
SetRX.Com, and one called SetJuki.Com in my AutoExec.Bat file.
One is activated by Ctrl-Left Shift, the other by Ctrl-Right

The patching is easy. Decide which printer you want this copy
of PRINTSET to send codes to.

Port #
---- --
Lpt1: (Prn) 00
Lpt2: 01
Lpt3: 02

Remember the number associated with it.

Now, issue the following command.


You should see the following:

xxxx:0DA7 03FB ADD DI,BX
xxxx:0DA9 BA0000 MOV DX,0000 <- This may not be 0000
xxxx:0DAC BB0000 MOV BX,0000

If you see this, then type the following command.

-E DAA ?? where ?? is the number you noted above

To make sure, type the U command again. You should get

xxxx:0DA7 03FB ADD DI,BX
xxxx:0DA9 BA0000 MOV DX,00?? <- where ?? is your number
xxxx:0DAC BB0000 MOV BX,0000

If that's all, then go to the "I'm Done" section below.

To Change Message Location

PRINTSET will display either an OK, ERROR, or UNAVAIL in the
middle of the 13th line of the window whenever you send a code
to the printer. If you want to move this to the middle of the
last line, (to allow more customization of each window,) issue
the following commands:


You should see:

267A:0DE0 81C39001 ADD BX,0190 <- this may not be 0190
267A:0DE4 BE0000 MOV SI,0000

To make the change, issue the following command:


And make sure that you did the right thing; issue the U command


You should see:

267A:0DE0 81C39001 ADD BX,01CC
267A:0DE4 BE0000 MOV SI,0000

Ok. That's all.

I'm Done:

You've made changes to your copy of PRINTSET.COM, and now you
want to save them. Remember, your changes won't take effect
until you

1) Save them, and
2) Install your copy of the program.

We are almost ready to save the changes. But first....

Since you are bound to have more than one copy of this program
lying around, you may want to identify the customization each
one has. This is done by editing the the Installation Message,
a simple procedure. You can use the one that comes with
PRINTSET, or be daring and design your own. The message is what
you will see when you install PRINTSET.

To do the simple thing:

* If you customized the printer port, you may want to reflect this
in the Installation Message. Do this:

-E EDB "x" where x is the number in LPT1, 2, or 3 -- the printer
you chose.

To make sure it looks ok, type the command:


On the right part of your screen, you should see that number
.. .. .. .. .. .. 0D 0A 41 r Port: LPT1:..A

* If you customized the activation keys, issue the following
command, substituting your keys:

-E EF0 "Alt-Right Shift. "
Be sure to put spaces to fill the quotes
out to EXACTLY 32 characters, otherwise
it will look funny when you boot up.

You should see the following when you issue the command:

-D EF0 F1F
267A:0EF0 43 74 72 6C 2D 41 6C 74-2D 4C 65 66 74 20 53 68 Ctrl-Alt-Left Sh
267A:0F00 69 66 74 2D 52 69 67 68-74 20 53 68 69 66 74 2E ift-Right Shift.
267A:0F10 0D 0A 24 24 24 24 24 24-24 24 24 24 24 24 24 24 ..$$$$$$$$$$$$$$

where your message completely covers the `Ctrl-Alt-Left Shift-
Right Shift.' part of the message.

Finally, this is a must: If you changed the escape codes, you
want to indicate what kind of printer the codes are for. Issue
the following command:

-E EB4 "NEC 3550/Tractor "
Again, be sure to fill out the message
with spaces, but only to 20 characters in

To be sure that everything is in order, issue the following
command. You will see the entire message, in rough form.

-D E6F F7F

If you don't like what you see, you can change it again. If you
want to customize how the entire message appears, type in the

-E E6F "your new message" 0D 0A "This is on a new line ..." 0D 0A "$"

Always be sure that your message ends with a "$", or you'll be
in for a big suprise when you load PRINTSET for the first time.


When you're happy about how it looks, type in the two following

-W (debug will print a message indicating it's writing to

And you're out. Reboot, and then install your copy of
PrintSet. If you don't like what you get, just come back end
DEBUG it again.

 December 23, 2017  Add comments

Leave a Reply