A89: Re: Cutting off sprites
[Prev][Next][Index][Thread]
A89: Re: Cutting off sprites
I think the mighty Zoltan said something like a ds.w 1 and then before you
jump to your sprite, move.w %d2,sprites or something like that.
-Miles Raymond
----- Original Message -----
From: <TurboSoft@aol.com>
To: <assembly-89@lists.ticalc.org>; <assembly-92@lists.ticalc.org>
Sent: Thursday, August 26, 1999 5:14 PM
Subject: A89: Cutting off sprites
> how is it possible to cut off how many lines are in a sprite from within
the
> sprite:...mask: construct using a register? for example:
> sprite(x,y,lines)
> int x;
> int y;
> int lines;
> {
> asm("
> move.w 8(%sp),%d0
> move.w 10(%sp),%d1
> move.w 12(%sp),%d2
> lea sprites(%PC),%a0
> bra oversprite
> sprites:
> dc.w %d2 file://error received here
> dc.w 3
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> dc.b 255,255,255
> oversprite:
> ");
> put_sprite();
> };
>
> is there a way to do it?
References: