423Fermer
FarewellLe 04/05/2009 à 14:05
Folco (./419) :
Franchement, c'est pas une bonne idée pour toi l'exécution en flash ?

Je disais ça juste comme ça hein, parce là, mon loader fait moins de 200 octets cheeky tongue

(ben oui, en C, ça compile toujours pas, alors j'm'impatiente grin)
loader.s
_main:
	lea.l	Data(%pc),%a5		|get &Data
	clr.l	-(%sp)			|version + function
	pea.l	PControlStr(%pc)	|push &name
	jsr	kernel__LibsExec	|try to execute
	addq.l	#8,%sp			|pop args
	rts				|and quit

Data:	.long	pedrom__system,pedrom__getenv,pedrom__tmpnam	|pedrom internal lib calls
	.word	KEY_LEFT,KEY_RIGHT,KEY_UP,KEY_DOWN		|values depending on calc type
	.long	CALCULATOR					|calc type

PControlStr:	.asciz	"pc"					|name of the dll to launch in the pack archive

#sifflote#