; SystemUtils module checking
; Slayer - a desktop anti-virus for RISC OS
; Copyright (C) 1996 - 2000 Kiwi Software (UK)
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
;
; info@kiwisoft.co.uk
; -------------------------------------------------------------------------


; created by rob; 17th September 1999


			funcName "sysutils_check"

.sysutils_check		ldr	r0,bufferTopOfFile_4
			sub	r1,filelength,r0
			teq	r1,#1940
			movne	pc,r14

			;okay could be module, grab something and check it

			ldr	r0,bufferBottomOfFile_39
			;ldr	r1, sysutils_check_word
			teq	r0, #&7965624F
 			movne	pc,r14

 			mov	r0,#sysutils
 			ldmfd	r13!,{pc}	;found virus: unstack and
 						;return to caller

.sysutils_text
			dcb	"SystemUtils",0,"System Utils	1.13 (21 May 1992)"
			align


                	funcName "sysutils2_check"
.sysutils2_check
			adr	r2, sysutils_text
			adr	r1, bufferTopOfFile_36

			strcmpw	45

			mov	r0, #sysutils2
			ldmfd	r13!, {pc}	; found virus; return to caller
