Small last minute change to the stop-startup code!
Code:
...
Start:
movem.l d1-a6,-(sp) ; save CPU registers
move.l 4.w,a6 ; a6 = execbase
...
In the End: code
Code:
...
movem.l (sp)+,d1-a6 ; restore CPU registers
moveq #0,d0 ; nice clean
rts ; exit
...
Now you have to figure out what this movem.l and (sp) stuff is...