* * * Electric Pencil ZAP Index * * *

ZAP#     Description
01 Have SHIFT+UP ARROWtab 4 places instead of 8
02 Modify default file extension from PCL to some other 3 character extension
03 Automatically Answer “LOWERCASE KIT INSTALLED” On Startup
04 Change Start-Up Page Spacing, Length, and Line Length
05 Speed Up The Initial Delay Before Auto-Key-Repeat
06 Speed Up The Auto-Key-Repeat Interval
07 “Quadruple Threat” Zap
08 Change between NEWDOS and TRSDOS
09 Make the BREAK Key Into the New Control Key
10 RETURN TO DOS Function to Work in CONTROL-K Mode
11 Set High-Memory Address to the Address in 4049H
12 Use BASIC’s Lineprint Driver Rather Than Pencil’s
13 Power-Up in “SX” Line Spacing Mode
14 Stop Auto-Pagination of Comprint Printers


# 1 – Have SHIFT+UP ARROWtab 4 places instead of 8

F00907  change C6 08 E6 38 32
            to C6 04 E6 3C 32
							


# 2 – Modify default file extension from PCL to some other 3 character extension

               from       to
F001DD  change "P"        "(1st character of your choice)"
F001E0  change "C"        "(2nd character of your choice)"
F001E3  change "L"        "(3rd character of your choice)"

               from       to
F0047C  change "P"        "(1st character of your choice)"
F00482  change "C"        "(2nd character of your choice)"
F00488  change "L"        "(3rd character of your choice)"
							


# 3 – Automatically Answer “LOWERCASE KIT INSTALLED” On Startup

F016E6  change 6C CD CF 67 21
            to 6C 00 00 00 21

F016F5  change 5A CD 79  65 E6
            to 5A 3E 59* 00 E6

* 59 for "Y", 4E for "N"
							


# 4 – Change Start-Up Page Spacing, Length, and Line Length

F00735  3E
    0C  -- Page Spacing (change to value of your choice)
    32
    2B
    5A
    3E
    36  -- Page Length (change to value of your choice)
    32
    44
    5A

    3E
    3E  -- Line Length (change to value of your choice)
    32
						
This does not affect the default values generated by the CONTROL-K subcommands A, G, and L (respectively), if they are input without an argument. For example, CONTROL-K subcommand “G”, without an argument, will set page length to 54 as stated in the Pencil manual, regardless of what you set its start-up value to.


# 5 – Speed Up The Initial Delay Before Auto-Key-Repeat

F01076  change 2E FA  18
            to 2E 50* 18

* The larger the number, the more the delay
							


# 6 – Speed Up The Auto-Key-Repeat Interval

F01069  change 2E 28  79
            to 2E 14* 79

* The larger the number, the more the delay
							


# 7 – “Quadruple Threat” Zap
  1. At start-up, skip title card

  1. Allow for start-up default print margin of greater than 0

  1. Start-up with keyboard in lowercase-entry mode

  1. Start-up in control-K subcommand mode

F00743  change 5A 21 C9  3D 11 6E 59 CD CF 67 CD 79 65
            to 5A 3E 05* 32 2A 5A CD 6D 65 C3 D6 61 65


F000A4  change 22 B1 5C 21
            to 22 00 00 21

* The start-up default margin.  May be any value you like.
							


# 8 – Change between NEWDOS and TRSDOS

F000AE  change FE 32 9B 46 C3 -- TRSDOS
            to FE 00 00 00 C3 -- NEWDOS
							


# 9 – Make the BREAK Key Into the New Control Key

F01047  change 3A 7F 38 B7 28 28 D9 CD
            to 3A 3F 38 B7 C3 CA 59 CD

F010BC  change C0 CB 61 20 F6
            to C0 C3 BD 59 F6

F010D9  change 5D 1B 17
            to 5D 00 17

F010E1  change 5F 1E 5B
            to 5F 00 5B

F010F0  change FE 1B CA
            to FE 5D CA

F0069F  change 00 54 48 45 20 45 4C 45 43 54 52 49 43 20
            to 00 E5 21 40 38 CB 56 E1 C2 FD 65 C3 06 66

(cont)  change 50 45 4E 43 49 4C 20 20 28 43 29 20 31 39
            to 28 04 D9 C3 93 65 3A 40 38 E6 FB 20 F5 C3

(cont)  change 37 39 20
            to BA 54 20
							
Once applied, use CLEAR whenever BREAK would normally be required (e.g., exiting CONTROL-K subcommand mode, ending scrolling). IMPORTANT: This patch requires the space from the Electric Pencil title screen, so ZAP 7 (“Quadruple Threat”) must also be applied.


# 10 – RETURN TO DOS Function to Work in CONTROL-K Mode

F0012F  change 03 F3 13 C0 CD
            to 03 C3 DA 59 CD

F006BC  change 65* 20 4D 49 43 48 41 45 4C 20
            to 65* FE 13 CA 64 54 C3 94 5D 20

* Should be "39" if ZAP # 9 is not made.
							
This will make it so that the CONTROL-O function, return-to-DOS, works in the control-K subcommand mode as well as in the normal, primary mode. This ZAP uses space in the title message following the space used by ZAP 9. It assumes that ZAP 7 (mandatory) and ZAP 9 (optional) have been made.


# 11 – Set High-Memory Address to the Address in 4049H

F0072B  change 77 BE 23 28 FB 2B 2B 22
            to 77 2A 49 40 00 00 00 22
							
This has pencil use the high-memory address in 4049H (computed by DOS at power-up) rather than computing its own. This will then leave memory intact, rather than zeroing it out, as Pencil normally does.


# 12 – Use BASIC’s Lineprint Driver Rather Than Pencil’s

F01690  change E4 F5 3A E8 37 E6 F0 FE
            to E4 D5 CD 3B 00 D1 C9 FE
							
Using BASIC’s lineprint driver instead of Pencil’s own, thus allowing user printer drivers (if needed) to work with Pencil in conjunction with ZAP # 11.


# 13 – Power-Up in “SX” Line Spacing Mode

F01329  change CD B2 68
            to CD C0 68

F0167B  change F1 00 18
            to F1 C8 18

							
By having pencil power-up in “SX” line-spacing mode, there will be no line-feed output for each carriage return. This is for printers which automatically line-feed with a carriage return (e.g., Comprint). NOTE: This ZAP cannot be undone by changing the “S” value in the “K” subcommand mode. This is nothing unique to this ZAP; the same condition exists if you type in “SX” explicitly.


# 14 – Stop Auto-Pagination of Comprint Printers

F006C4  change 5D* 20 53 48 52 41 59 45 52 00
            to 5D* 21 46 5A 3E 1E C3 A2 6B 00

F0167B  change F8 21 46 5A 7E
            to F8 CD E2 59 7E

* Use 4C if Zap # 10 was not made

							
Without this ZAP, Pencil printouts on Comprint are quite poor, because Pencil is paging too, resulting in double pagination.
This ZAP, like other zaps, use the space in the title message, so Zap # 7 must also be made.
This ZAP may work with other printers which auto-page. The “1E” in the F006C4 “to” line is a control character recognized by Comprint which switches off its auto-page. Other printers may work similarly.