; Millenium Module Checking code
; 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 Luke (1/10/98)

;look for size-header = 1164

			funcName "millenium_check"

.millenium_check	ldr	r0,bufferTopOfFile_4
			sub	r1,filelength,r0
			teq	r1,#1164
			movne	pc,r14

			;okay could be module, grab something and check it

			ldr	r0,bufferBottomOfFile_23
			teq	r0, #&C5DFD69E
			;ldr	r1,millenium_check_word
 			;teq	r0,r1
 			movne	pc,r14

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

.millenium_check_word
			dcd	&C5DFD69E


