5700

et hop ! debout là-d'dans !

5701

5702

eek
«Les gens exigent la liberté d’expression pour compenser la liberté de pensée qu’ils préfèrent éviter.» - Sören Kierkegaard

La République, c’est comme la syphilis : quand on l’a attrapée, soit on se fait sauter le caisson, soit on essaie de vivre avec.

5703

Eh ben !
avatar

5704

5705

• Folco surveille le topic d'à côté pour être sûr que l'aut' rate pas son bus aujourd'hui

5706

Il était en retard embarrassed
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5707

pas mal le msp430

// |15|14|13|12|11|10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0|
// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
// |  opcode   |   sreg    |Ad|BW| As  |   dreg    | format 1
// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
// |          opcode          |BW| ad2 |   dsreg   | format 2
// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
// | opcode |   C    |            offset           | jump
// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

5708

pouet !

5709

c'est scandaleux, il y a des gens qui font tomber la DB juste pour que je gagne pas embarrassed
(20:50) Souane - Posté : 15-07-2004 | oué chui pas d'accord moi : y a qu'une seule perverse ici c'est moi ! Muahaha!!! #trivil#
(08:35) Nil - Posté : 03-03-2008 | OMG I think I'm gay
www.brumeries.info
SH33P OWNZ!!!
Haruhi Suzumiya is the only true God.
"Jesus was eaten by worms ~2000 years ago" ©un illustre inconnu

5710

bonjour smile
avatar

5711

^^
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5712

Fab_ (./5709) :
c'est scandaleux, il y a des gens qui font tomber la DB juste pour que je gagne pas embarrassed

grin

5713

grin
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5714

Et rehop
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5715

ManageCmdline (refactoring)
;===============================================================================
;
;	pdtlib::ManageCmdline
;
;	in	4(sp)	CMDLINE* cl
;		8(sp)	void*	Data
;		12(sp)	char*	SwitchesList
;		16(sp)	ushort	(*ArgNotSwitch) (void* Data asm (a0))
;		20(sp)	ushort	(*ArgSwitch1)	(void* Data asm (a0),
;						 short Sign asm (d1.w)
;						)
;		24(sp)	(*)	...
;
;	out	d0.w	ushort
;
;	destroy	std
;
;	Look at pdtlib.h for return values
;
;	SwitchesList format:
;
;	dc.b 'ShortSwitch1', "Long Switch 1", 0
;	dc.b 'ShortSwitch2', "Long Switch 2", 0
;	dc.b ...
;	dc.b 0, 0
;
;	'ShortSwitchX' or "Long Switch X" may be 0, if no such switch exists
;	When both are 0, this is the end of the table
;
;===============================================================================

	DEFINE 	pdtlib@0001

ManageCmdline:
	movea.l	4(sp),a0			; CMDLINE*
	bsr	GetNextArg
	moveq.l	#PDTLIB_END_OF_PARSING,d0
	move.l	a0,d1
	beq.s	\Return
	moveq.l	#0,d2		; Offset in the callbacks table, initialized to call
				; ArgNotSwitch if the arg haven't a sign

	;-----------------------------------------------------------------------
	;	Check that an arg exists
	;-----------------------------------------------------------------------

	moveq.l	#'+',d1			; +
	cmp.b	(a0),d1
	beq.s	\SignFound

	addq.l	#2,d1			; -
	cmp.b	(a0),d1
	beq.s	\SignFound

	cmpi.b	#173,(a0)		; (-) is accepted
	bne.s	\Callback

	;-----------------------------------------------------------------------
	;	Begin to analyse the arg
	;-----------------------------------------------------------------------

\SignFound:
	addq.l	#1,a0			; Skip sign
	movea.l	12(sp),a1		; SwitchList
	moveq.l	#4,d2			; Switch offset in the list

	moveq.l	#PDTLIB_EMPTY_SWITCH,d0	; Check if the sign is alone
	tst.b	(a0)
	beq.s	\Return

	tst.b	1(a0)
	beq.s	\ShortSwitch

	;-----------------------------------------------------------------------
	;	Handle a long switch
	;-----------------------------------------------------------------------

\LongSwitchLoop:
	movem.l	d1-d2/a0-a1,-(sp)
	pea	(a0)
	pea	1(a1)
	ROMT	strcmp
	addq.l	#8,sp
	movem.l	(sp)+,d1-d2/a0-a1
	tst.w	d0
	beq.s	\Callback
		bsr.s	\SkipItem
		bra.s	\LongSwitchLoop

	;-----------------------------------------------------------------------
	;	Handle a short switch
	;-----------------------------------------------------------------------

\ShortSwitch:
	move.b	(a0),d0
	cmp.b	(a1),d0
	beq.s	\Callback
		bsr.s	\SkipItem	; Won't return if EOT is reached
		bra.s	\ShortSwitch

	;-----------------------------------------------------------------------
	;	Call a callback, and check its return value
	;-----------------------------------------------------------------------

\Callback:
	movea.l	8(sp),a0			; Data*
	movea.l	16(sp,d2.w),a1			; (*Callback)
	jsr	(a1)				; Sign is already in d1.w for switches

\CheckCallbackReturnValue:
	cmpi.w	#PDTLIB_CONTINUE_PARSING,d0		; Callback wants the parsing to continue
	beq.s	ManageCmdline

	cmpi.w	#PDTLIB_STOP_PARSING,d0
	bne.s	\WrongReturnValue
		moveq.l	#PDTLIB_PARSING_STOPPED,d0	; Callback wants the parsing to stop
\Return:	rts

\WrongReturnValue:
	moveq.l	#PDTLIB_WRONG_RETURN_VALUE,d0		; Callback throws an unhandled value
	rts

	;-----------------------------------------------------------------------
	;	Skip the item pointed to by a0 in the SwitchList
	;	a1 points to the first byte of the item (short switch)
	;-----------------------------------------------------------------------

\SkipItem:
	addq.l	#1,a1
\SkipItemLoop:
	tst.b	(a1)+
	bne.s	\SkipItemLoop
	tst.b	(a1)					; Test first byte after terminal 0
	bne.s	\NextSwitch				; This is another item, with a short switch
		tst.b	1(a1)				; No short switch, is there a long switch ?
		bne.s	\NextSwitch			; Yes
			addq.l	#4,sp			; Else we have reached EOT, remove return address
			moveq.l	#PDTLIB_SWITCH_NOT_FOUND,d0
\NextSwitch:
	addq.w	#4,d2					; Update offset in the callbacks list
	rts

Ca, c'est de la fonction magique, elle fait tout.

5716

Y compris le chocolat chaud ?
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5717

5718

tchou
avatar

5719

flanker (./5716) :
Y compris le chocolat chaud ?

C'est même surtout ça qu'elle fait bien ! grin

5720

hehe
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5721

5722

Bonjour !
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

5723

5724

c'est dbus qui a planté au démarrage...
avatar

5725

aaah dbus quelle belle merde machine...

5726

dbouse ? yep oui

5727

Arf j'ai acheté «uneuh chocolatineuh», que la dame a mise dans «uneuh pôche»
Ils sont vraiment cools dans le Sud, mais ils parlent bizarrement cheeky

5728

a perpignan c'est dans des bourses.

5729

king
avatar
Webmaster du site Ti-FRv3 (et aussi de DevLynx)
Si moins de monde enculait le système, alors celui ci aurait plus de mal à nous sortir de si grosses merdes !
"L'erreur humaine est humaine"©Nil (2006) // topics/6238-moved-jamais-jaurais-pense-faire-ca

5730

Tu te lèves si tôt que ça, maintenant ?
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant