RESMAGIC  	.equ		$31415926
_resvalid 	.equ		$426
_resvector	.equ		$42A
_p_cookies	.equ		$5A0

		.globl	_unjar

_unjar:		move.l	_resvalid,valsave
		move.l	_resvector,vecsave
		move.l	#reshand,_resvector
		move.l	#RESMAGIC,_resvalid
		rts

reshand: 	clr.l	_p_cookies
	 	move.l	vecsave,_resvector
	 	move.l	valsave,_resvalid
	 	jmp   	(a6)

		.bss

vecsave:    	.ds.l		1
valsave	    	.ds.l		1

