1890Fermer1892
FarewellLe 25/11/2013 à 21:58
Oui, c'est ça, la première instruction est inutile ^^
Ce bout de code sert à déterminer l'offset d'un pixel en fonction de son abcisse :
	lea	$4C00+30*90,a0	; LCD_MEM + y
	move.w	d3,d0		; x
	lsr.w	#3,d0		; x / 8
	adda.w	d0,a0		; Adresse où est le pixel

	move.w	d3,d0		; x
	not.w	d0		
	andi.w	#7,d0		; Offset du pixel dans l'octet
	btst.b	d0,(a0)