; RESREN - Rename module in RES:
; (C)1988 By Ami Bar-Yadin.
; AMUS ID: AMI/AM
;
; Syntax: RESREN <filename> <newname>
; default first extension is .LIT
; default second extension is first extension
;
; the actual writing to RES: is done in SUPERVISOR mode
; with JLOCK & SVLOK in effect.
;
;
VEDIT=101
;
;
; All commercial rights reserved, etc.
;
; If you want to include this program with a commercial package,
; go right ahead so long as you include the UNCHANGED source (.m68) with it.
;
; No warranties and/or guarranties of any kind, etc.
;
; Not responsible for damages resulting from the use of this program, etc.
;
; My employer (United Fashions) has nothing to do with this program and
; should not be blamed for it.
;
; I can be reached at:
; United Fashions of Texas, Inc.
; 200 Ash Ave.
; McAllen, TX 78501
; (512) 631-2277/2276
; 8am-6pm
;
SYM
SEARCH SYS
SEARCH SYSSYM
RADIX 16.
DEFAULT VEDIT,1
DEFAULT $$MFLG,PV$RSM!PV$WSM
DEFAULT $$SFLG,PH$REE!PH$REU
DEFAULT $$SFLG,0
DEFAULT $$LFLG,-1
PHDR $$LFLG,$$MFLG,$$SFLG
TYPE <RES:>
OFILE DDB(A5),OT$TRM!OT$OFN
TYPE < module renamed to >
OFILE DDB2(A5),OT$TRM
CRLF
EXIT
FNDMOD:
SRCH D.FIL+DDB(A5),A0,0 ; search for memory module
JNE ERR1 ; abort if module not found
USRBAS A1 ; get start of user's memory
CMP A0,A1
JHIS ERR2 ; abort if module is in MEM:
RTN
; ERROR MESSAGES
ERR1: TYPE <?Memory module >
OFILE DDB(A5),OT$TRM!OT$OFN
TYPECR < not found.>
EXIT
ERR2: TYPE <?Memory module >
OFILE DDB(A5),OT$TRM!OT$OFN
TYPECR < is in MEM: instead of RES:>
EXIT
HELP:
TYPECR <Syntax: RESREN filename newname>
TYPECR < default first extension is .LIT>
TYPECR < default second extension is first extension>
EXIT