;C prototype: void DrawSmallBackground (short x, short y, unsigned short offset, void *sprite, void *dest); ; ;void DrawSmallBackground (register short x asm("%d0"), ; register short y asm("%d1"), ; register unsigned short offset asm("%d2"), ; register void *sprite asm("%a0"), ; register void *dest asm("%a1")); ;Ici le sprite à afficher fait 7 pixels de hauteur et 16 pixels de largeur xdef DrawSmallBackground DrawSmallBackground: move.l d3,-(a7) add.w d1,d1 add.w d1,d1 move.w d1,d3 lsl.w #3,d3 sub.w d1,d3 lsr.w #3,d0 add.w d0,d3 adda.w d3,a1 ;Offset sprite adda.w d2,a0 ;DrawSprite LIGHTPLANE moveq.l #6,d3 DrawSprite_0: move.b (a0),(a1) move.b 1(a0),1(a1) lea.l 28(a1),a1 lea.l 16(a0),a0 dbra.s d3,DrawSprite_0 ;DrawSprite DARKPLANE lea.l 3724-28*7(a1),a1 lea.l -16*7+8(a0),a0 moveq.l #6,d3 DrawSprite_1: move.b (a0),(a1) move.b 1(a0),1(a1) lea.l 28(a1),a1 lea.l 16(a0),a0 dbra.s d3,DrawSprite_1 move.l (a7)+,d3 rts