Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-04 - 43,50351/zap.shr
There are no other files named zap.shr in the archive.
,+ ~u	` 
+lBB@`3B
;+b+
&	`
&6@m @7@@.@
``	j+ 
07+
+1D+1D+1D + 
2d  
@@K,1"(B&!d`&"[4D*Hf	nF&R;Z;`NP<
,~
&+a`+BI$3ql5u9[>t;7@+Z+0R
&A+

Z.A.P.	-  THE ZOFTIG ALTERATION PROGRAM

ALL COMMANDS ARE ONE LETTER, FOLLOWED IMMEDIATELY BY
THE ARGUMENT(S).
ARGUMENTS IN <> ARE OPTIONAL. ALL NUMBERS ARE OCTAL.

COMMANDS:

Ffile<.ext><[p,pn]>	- OPEN file.ext
Afile<.ext><[p,pn]>	- AUTO OPEN
C		- CLOSE FILE
E		- CLOSE FILE IF OPEN AND EXIT
		  (SAME AS ^C)
Rn OR R+/-<N>	- READ A BLOCK
W		- WRITE CURRENT BLOCK
D<loc<,n>>	- DISPLAY IN CURRENT MODE
Zloc		- ZAP IN CURRENT MODE
S		- SEARCH AND ZAP IN CURRENT OR CHARACTER MODE
Mk		- SET MODE
Pn		- SET WRITE PROTECT
I		- TYPE CURRENT STATUS
Tk		- SET TERMINAL TYPE
H		- THIS MESSAGE

FOR MORE INFORMATION, TYPE "Hc", WHERE c IS SOME COMMAND.

dTJFLBjt#HofnR;`MZ
hW
&+
&+Mk		-SET CURRENT MODE

ALL DISPLAY AND ZAPPING IS DONE IN THE CURRENT MODE.
THE EXCEPTION IS K(CHARACTER ZAP - SEE THE K COMMAND).
THE THREE MODES ARE:
O	- OCTAL
S	- SIXBIT
A	- ASCII
K	- ASCII CHARACTER
I	- INSTRUCTION

ASCII IS DISPLAYED AS 7-BIT BINARY BYTES, WITH THE CHARACTER
EQUIVALENTS TO THE SIDE. CONTROL CHARACTERS ARE DISPLAYED
AS "\". SIXBIT MODE DISPLAYS AND ENTERS AS CHARACTERS; OCTAL
AS NUMERALS. OCTAL IS DEFAULT.
,;52RF2F9<dlF Dd ``a@+@
 
,I4LE3L>+9
C
&+^fBRVe`E&pg0Q@Y?8g#
&+a`+2[d l 
&X+
Tk		- SET TERMINAL STATUS

FOR OPERATION ON A HARDCOPY TELETYPE, TYPE "TH". DEFAULT
IS CRT ("TC").
,;52,Rh2T9d+Ah+PiFjl  d  
&k+
Afile<.ext><[p,pn]>	- AUTO OPEN file.ext

CLOSE CURRENT FILE, IF OPEN (UNLESS ZAPPED BLOCK STILL IN
CORE). OPEN FILE.EXT AND READ IN BLOCK 1. (THIS IS BASCALLY
THE SAME AS THE AUTO START PROCEDURE - SEE THE F COMMAND.)
l  ``+$+ 
&+Ffile<.ext><[p,pn]>	- OPEN FILE FOR WORK
NO WORK CAN BE DONE UNTIL A FILE HAS BEEN SPECIFIED, EITHER WITH
THE F COMMAND, OR AT THE MONITOR LEVEL: R ZAP-file.ext.
IF A DIFFERENT P,PN FROM THE USER IS GIVEN, THE USER MUST
HAVE WRITE PRIVILEGES TO THAT UFD.
``+/
:+2@@=3*"A,;4T6T>T@4231R++0R+
&7a`+
&A 
@,LR
@4L@
"B,L
&CS
?,P
&D``
&E``+E
&G+
&IS
I,P
&J``
&K
&L
'dQa`+``
&N`@
&O
&P 
M,i
&Ra@+
&T 
P,i
&W+WXYZ\
&^+a`+2f``+
d} JNBK+b
b +
BS`
&n,P	b'	`a` ++;
2
&pl+5T"`.I+Y
&p+D<loc<,n>>	DISPLAY IN CURRENT MODE

IF NO ARGUMENTS ARE GIVEN, DISPLAY THE ENTIRE BLOCK.
IF NO loc IS GIVEN, DISPLAY n WORDS STARTING AT LOC 0.
IF ONLY loc IS GIVEN, DISPLAY LOC.
OTHERWISE, DISPLAY n WORDS STARTING AT loc.
,@@I."@4BJ,;7@42``+
&
,P
"u d!<f
&`  
a`  
I,d83$J+
&SLVWa
&$+Zloc		- ZAP ONE WORD IN CURRENT MODE

THE VALUE OF loc IS DISPLAYED, AND THE USER TYPES IN THE
NEW VALUE UNDERNEATH. ONLY THOSE CHARACTERS RECOGNIZED IN THE
CURRENT MODE ARE VALID. THE FOLLOWING KEYS HAVE SPECIAL MEANING:
ESCAPE	ZAP UP TO POINT OF ESCAPE
RUBOUT	DELETE NEW VALUE AND RETAIN OLD ONE.
CTRL-H	BACKSPACE ONE CHARACTER
CTRL-L	FORWARD SPACE ONE CHARACTER
IN ASCII MODE, THE FIRST CHARACTER OF EACH BYTE MUST BE ZERO OR
ONE, AS MUST THE LAST BIT (BIT 35).
,``+
 I,d
& Il ,BF IGD I 
 I`@,da`@l ,pd`@+e
&@++8
&va@9[ 
 J,d
&^ N 
 ,d
& l ,BF GD 
&a@+\`@+ N P`@+^``@+w"
K$
d/
O.*(D((F(@@K+^ 
K@@K$
d/*#`/
O N P@f`@<
)D()N(a@+(D(NBD IGN I +_ P D I+_
&+S[/s]		- SEARCH FOR VALUE AND ZAP
SM[/s]		- SEARCH MULTIPLE BLOCKS
SC		- CONTINUE SEARCH FROM LAST FOUND VALUE
SCM		- CONTINUE MULTIPLE SEARCH
SEARCH IS CONDUCTED IN CURRENT MODE; THUS, CHANGING THE MODE
WILL DISCONTINUE THE SEARCH. WHEN THE SEARCH VALUE IS FOUND,
IT IS DISPLAYED, AND THE USER HAS A CHANCE TO CHANGE IT. RUBOUT
WILL RETAIN THE ORIGINAL VALUE AND RETURN THE USER TO COMMAND
LEVEL. IF THE VALUE IS FOUND TO LIE ACROSS A WORD BOUNDARY, BOTH
WORDS MAY BE ZAPPED.
   SEARCH MULTIPLE WILL WRITE OUT ANY BLOCK THAT HAS BEEN ZAPPED
IN THE PROCESS OF CONTINUING THE SEARCH.  A NEW BLOCK MAY BE
READ IN WITHOUT INVALIDATING THE MULTIPLE SEARCH.
   S/F (OR SM/F) REQUESTS A FULLWORD SEARCH - THE ENTIRE WORD MUST
MATCH THE SEARCH STRING (RIGHT JUSTIFIED). EXCEPT IN ASCII MODE,
SEARCHING FOR ALL 36 BITS DOES NOT AUTOMATCIALLY INVOKE THE
FULLWORD SEARCH.
   S/R (SM/R) REQUESTS AUTO REPLACEMENT ON A SUCCESSFUL SEARCH. EXCEPT
ON A FULLWORD SEARCH, THE SEARCH AND REPLACEMENT STRINGS MUST BE THE
SAME SIZE.
   S/C (SM/C) WILL CONTINUE SEARCH AUTOMATICALLY AFTER ZAP IS COMPLETE
(FOR A PROTECTED FILE, AFTER DISPLAY). WHILE RUNNING, TYPING ^C (CTRL-C)
WILL STOP ACTION - EVENTUALLY. USE WITH CAUTION.
   S/W (SM/W) REQUIRES THAT THE MATCH TO THE SEARCH STRING BE FOUND
ENTIRELY WITHIN ONE WORD.
,,;4T$xR4B,; *zR
(4L9
l*l+a@+``+
&x
'dQ
&zd @@K,4F`@+(@`F+!(F=(D8hi@)D ,.
 LO#`.d NOa@+*1Ll+* * JO JO DM FN
&@+4
&|,4F`F+1(F=/(D8`@+42FN+
d} JNl a@+8 *j~a`@
@@b d"
dNZN0(	+``@+@($()Cd.3&O+:7 a@AN2BM+:/(I`@+I$2$Om @8<a@@+Id`@+8a`+KS
I
&,P
&S
,P``@
&
&`+X 
 I,d
&@K`@+na`@+U "$//O+W ".O/&d BK+n 
 I,de`@+^,p
&8S
,P
& 
 I,d
&@++8``+c
&d +``+h I82f?+wBL7+_0h	+n&3&O+nl`+<Pd}X(	 HNNZN+<l ,p+4e`,~e`+t#IbK7+_	b:I 
**	O,~
&d+FG4@FH
IHIHIIIHI
&
+,``+K++
&+
C		- CLOSE FILE.
E		- CLOSE AND EXIT.
ONE OR THE OTHER MUST BE DONE BEFORE EXITING. IF A ZAPPED BLOCK
IS STILL IN CORE, THE ROUTINE WILL OFFER THE CHOICE OF CLOSING
WITHOUT WRITING IT BACK OR REREADING IT. THE USER CAN OF
COURSE WRITE IT OUT THROUGH THE W COMMAND.
a`+-"A`` + a`+	`	`l a`+)a`+&
&l @@Q+e@+*@@Q
&+
" 

(1L+91L+81L
 7
&
L,~d  
@nG ,G7 0+B2P09
=1POPG,~P/040
)J.*
"=nM,~ .@
)J.*
"=nP,~ R`,P
"S
+P . @
)J.*
"@
)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`o`UK@+a?H6+UKI@+Qf@+ Up+PU~`+(U +0U+@U+PU?0+`S:
[
 _W$:
"S:
Y
$_W&=
&S:
(S:
v
*	O%Ht
,	g%Ht
.
e87
0
G3)T
2G3)W
4g/Q
6
g/V
8
S>t[z
:Y&=I%@
g$II%}:I4:$I$},O$:4I&+<oN@DG?PLKbN@TkC$;\I$PdY>=@lCC[QtY>=}:|g^NHte<t
i&l\@[O%2O&
$iK9:,iK)74eVvJ6<a*| Dg2,\Lg&{Ta-0\O%J7deVplg&]xtel|O&93O&H1
gCHg%h6i7;y$ IN\:, gg=4!U>=<!gS]7D"gg
L"I6N8\#I6=d#I6
l$g-0t$eS&,|%Y>0%U>=
&Y>&o".) 'I5h6$'GRe+q,(O>=4(QCL)Q&\@T)o\P\*G">
d*g&]7l+_RF\y|+G"\q,I6:=
,I-[w-U>	5-CS$t$.I,j7,.MJ]74/I5KV</a%@D0[$\GL0[R
GT1U]\1a>\S@d2iJmkgl2iJm|t3eMG|3k:ezg4I'3@
4I[=5I[.,g5Gb',6[RL8KJf=T8gv9'\9G3=d9a&Mj'l:a'gt:I*g|;a'G;a'=
<SBlG<SBlg=SBl'$=a<S@,>gW]4
&*+
&,+
&.
&3d @@I+
&5+
&8+
&:+
&<+
&>+
&@+
&C7
&Fd@d +
&K+
&N+
Zb@0B+
&Q
'
o
&+RTVX[^`bdfiklo~`/ ??CAN'T OPEN TTY

&`??ZAP RUNS ON REAL TERMINAL ONLY
ZAP!		
TYPE H FOR HELP
HB<B%NOT YET IMPLEMENTED. PATIENCE, PLEASE.
?DDT NOT LOADED

&
+WISE GUY!
?INVALID MODE

&+%NOT A BINARY FILE

Pn		- SET WRITE PROTECTION

   IF SET TO ZERO (INITIAL CONDITION), FILE CAN BE ZAPPED.
IF SET TO 1, ZAP WILL NOT WORK, AND SEARCH WILL DISPLAY ONLY.
?FILE IS READ-ONLY

&&+?INVALID TYPE

&*+?FILE ALREADY OPEN

&-+??CAN'T OPEN DISK

&0	`X>?NO FILE NAME

&4+
I		- TYPE CURRENT STATUS

TYPE OUT THE NAME OF THE OPEN FILE, THE CURRENT BLOCK,ETC.
FOR EXAMPLE:
FILE:  LENGTH:  BLOCKS
WRITE-PROTECTED
NO BLOCK IN CORE
BLOCK  IN CORE ZAPPED
DISPLAY/ZAP MODE: MULTIPLE FULLWORD SEARCH FOR "" CAN BE CONTINUED.
REPLACEMENT VALUE IS ""
OCTAL
SIXBIT
ASCII
INSTRUCTION
ASCII CHARACTER

Rn		- READ BLOCK n
R+<n>		- READ AHEAD n BLOCKS (DEFAULT IS ONE)
R-<n>		- READ BACK n BLOCKS

YOU MUST SPECIFY THE BLOCK TO READ BEFORE DOING ANY WORK.
??I/O ERROR: STATUS = ?ZAPPED BLOCK STILL IN CORE. TYPE R TO REREAD

(SECOND PART)
SEARCH MODE IS ENTER SEARCH VALUE: ENTER REPLACEMENT: 0N<N
BLOCK 
LOC  (FIRST PART) (SECOND PART)
%END OF BLOCK REACHED
I%%END OF FILE REACHED.

W		- WRITE CURRENT BLOCK
SELF-EXPLANATORY.
L?ZAPPED BLOCK STILL IN CORE.
TYPE C TO CLOSE WITHOUT WRITING OR R TO REREAD.

%SEARCH ABORTED
HGHG0 x<0$.?DELETED
UNCHANGED
p$L
]    .$``?FILE NOT OPENED
?ILLEGAL SYNTAX
%MORE BLOCKS ALLOCATED THAN USED IN FILE
?BLOCK # OUT OF RANGE
?ILLEGAL CHARACTER
?NOT AN OCTAL NUMBER
?ILLEGAL COMMAND
%NO FILE OPEN
?NO BLOCK IN CORE
?NO SEARCH IN PROGRESS
?NULL REPLACEMENT ILLEGAL
?SEARCH AND REPLACEMENT VALUES NOT THE SAME SIZE
?FILE IS WRITE-PROTECTED
?LOCATION OUT OF RANGE
? (FILE I/O): FILE NOT FOUNDNO UFD FOR P,PNPROTECTION FAILUREFILE BEING MODIFIED; TRY LATERSYSTEM ERROR P-ERAEF%SYSTEM ERROR P-ERISU%DEVICE OR RIB ERRORQUOTA EXCEEDEDSTRUCTURE WRITE-LOCKEDSYSTEM ERROR S-ERNET%PARTIAL ALLOCATIONBLOCK NOT FREESYSTEM ERROR P-ERCSD%SEARCH LIST EMPTY