29421Fermer29423
FarewellLe 10/11/2016 à 10:17
	pea	\End(pc)					; Same return address for all the cases
	
	cmpi.w	#HORIZONTAL_LAYOUT,Widget.type(a2)
	bne.s	\NoHorizontalLayout
		bra	PrepareHorizontalLayout
\NoHorizontalLayout:

	cmpi.w	#VERTICAL_LAYOUT,Widget.type(a2)
	bne.s	\NoVerticalLayout
		bra	PrepareVerticalLayout
\NoVerticalLayout:

	cmpi.w	#LABEL,Widget.type(a2)
	bne.s	\NoLabel
		bra	PrepareLabel
	
\End:
Un switch en assembleur : mutualisation des "break" avec un seul pea, gain de deux octets (bra.s) par case
gcc sait faire ça ?