5$: SUB #14,SP ; get some workspace
FILNAM 6(SP) ; read TO module name
BYP
CMPB (A2)+,#'= ; bypass = sign, must exist!
BEQ 10$
TYPECR <?Specification error>
JMP EXIT
10$: BYP
FILNAM @SP ; read FROM module name
SRCH @SP,A5 ; find FROM module name
BNE 20$
USRBAS A4
CMP A4,A5 ; system memory only
BHI 30$
20$: TYPECR <?File not found>
BR EXIT
30$: ADD #6,SP ; index new name
SUB #6,A5 ; index module name
POP (A5)+ ; rename module
POPW (A5)+
TYPECR <1 Module renamed.>
EXIT: TYPECR <Copyright (c) 1983,1987 by Software Designs>
EXIT