;*************************** AMUS Program Label ******************************
; Filename: SSDCHK.M68 Date: 10/05/91
; Category: UTIL Hash Code: 770-361-661-337 Version: 1.0(100)
; Initials: ULTR/US Name: DAVID PALLMANN
; Company: ULTRASOFT CORPORATION Telephone #: 5163484848
; Related Files:
; Min. Op. Sys.: AMOSL 1.0/AMOS32 1.0 Expertise Level: INT
; Special: Run this if you suspect faulty SSD chip or CPU timing problems.
; Description: Checks SSD continually, displays failures on screen.
;*****************************************************************************
;****************************************************************************
;* *
;* SSDCHK *
;* Utility to check integrity of your SSD *
;* *
;****************************************************************************
;[100] 04 October 1991 16:51 Edited by David Pallmann
; Created.
;version number
VMAJOR =1
VMINOR =0
VSUB =0
VEDIT =100.
VWHO =0
;universals
SEARCH SYS
SEARCH SYSSYM
SEARCH TRM
;variables
.OFINI
.OFDEF CODES1, 64. ; 1st set of codes read
.OFDEF CODES2, 64. ; last set of codes read
.OFDEF CODES, 4 ; number of codes to read
.OFDEF PASSES, 4 ; passes made
.OFDEF DELAY, 4 ; delay between passes
.OFDEF GOOD, 4 ; good pass count
.OFDEF BAD, 4 ; bad pass count
.OFSIZ MEMSIZ
START: PHDR -1,0,PH$REE!PH$REU ; program header
GETIMP MEMSIZ,A5 ; allocate local memory for variables
TYPESP SSDCHK Version ;
VCVT START+2,OT$TRM ;
CRLF ;
CRLF ;
TYPECR <This utility will continually sample the SSD chip, and will display>
TYPECR <warnings if the codes returned differ from one pass to the next.>
CRLF ;
TYPESP How many passes do you want to make (default: run continually):
KBD EXIT ;
GTDEC ;
MOV D1,PASSES(A5) ;
TYPESP How many seconds do you want to pause between each pass (default: none):
KBD EXIT ;
GTDEC ;
MOV D1,DELAY(A5) ;
10$: TYPESP How many bytes do you want to read during each pass (default: 16):
KBD EXIT ;
MOV #16.,D1 ;
NUM ;
BNE 20$ ;
GTDEC ;
20$: CMP D1,#1 ;
BLO 10$ ;
CMP D1,#64. ;
BHI 10$ ;
MOV D1,CODES(A5) ;