home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
402.lha
/
kickreboot
/
KickBoot.a
< prev
next >
Wrap
Text File
|
1990-07-27
|
575b
|
31 lines
; 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