;
;	>>> SillyPack - Addicted Fix by JAC! <<<
;
;	Create startable XEX from packed segment
;
;	@com.wudsn.ide.asm.outputfile=ADDICTED.xex

	opt h+

	org $2000
	.byte 'Addicted -  DOS compatible packed XEX version by JAC! on 2014-03-03',$9b

	org $2000
	.proc loader
	mva #$ff $d301
	mva #1 $3f8
	mva #0 559
	sta $d400
	rts
	.endp

	ini loader
	
	opt h-
	ins "ADDICTED-Packed-$2000.xex"

	opt h+
	
	org $80				;Use ZP to not break fast loaders

	.proc main
	jsr $2000			;Unpack
	mva #1 580			;Force coldstart as this will kill DOS
	jmp $3820
	.endp

	run main


