DOS 2.0 Utilities Disk 1 (Sep 1991) : KickReboot / KickBoot.a

; Assembler Stub for KickReboot

	csect	text,CODE

	include	"exec/ables.i"
	include "exec/funcdef.i"
	include "exec/exec_lib.i"
	include "asmsupp.i"
	xdef _KickReboot

	int_ables

_KickReboot:
	move.l	4,a6
	lea	1$,a5
	CALLSYS	Supervisor
1$:
	Disable	a0		;switch off multitasking
	move.l	#0,-(sp)
	move.l	sp,a0
	pmove	(a0),tc		;switch off mmu
	move.l	#$1000004,a0	;
	move.l	$ffffec,a1	;get KickStart length
	suba.l	a1,a0		;points to restart address
	move.l	(a0),a0		;get real address
	cnop	0,4		;longword align (IMPORTANT!)
	reset
	jmp	(a0)
	;Point of never never return
	end