;*************************** AMUS Program Label ******************************
; Filename: VERIFY.M68 Date: 01/31/89
; Category: SBR Hash Code: 621-761-140-350 Version: 1.0
; Initials: GR/AM Name: JAMES A. JARBOE IV
; Company: EDUCATIONAL FILMSTRIPS Telephone #:
; Related Files:
; Min. Op. Sys.: Expertise Level: BEG
; Special: Original author unknown
; Description: Used to check memory to see if a module is loaded.
; Reports back if module is not in memory. XCALL.M68 no longer needed for
; assembly. Usage: XCALL VERIFY,"basic.sbr"
;*****************************************************************************
;*; Updated on 09-Jan-89 at 3:48 AM by ; edit time: 0:05:56
;
OBJNAM VERIFY.SBR
;
SEARCH SYS
SEARCH SYSSYM
; COPY XCALL
;XCALL argument list - relative offsets
;Donated to AMUS 5/16/84 by NY-AMUS
START: MOV XC.AD1(A3),A2 ; Point to module name
MOV A4,A1 ; Point to pack module
PACK ; Pack module name
PACK ; Pack second triplet
INC A2 ; bypass .
PACK ; Pack extension
SRCH @A4,A0 ; Search memory
BEQ 10$ ; Module there?
TYPE ? ; Nope..
PRNAM @A4 ; Print out module name
TYPECR < not in memory> ; Tell em no such luck
EXIT ; exit
10$: RTN ; Return to Basic