A92: The constant mask
[Prev][Next][Index][Thread]
A92: The constant mask
l am having this problem using put_sprite_mask...
mountain(top1,lines1)
int top1;
int lines1;
{
asm("
move.w 8(%sp),%d1
move.w 10(%sp),%d2
move.w 0,%d0
move.b 255,%d3
lea mountains(%PC),%a0
move.w %d2,mountains
bra overmountain
mountains:
dc.w 0
dc.w 20
dc.b 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
dc.b 0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0
dc.b 0,0,
etc...
overmountain:
");
put_sprite_mask();
};
This draws the huge sprite, but it does not use the mask (11111111 - 255) for
some reason. It acts as though the constant mask is 00000000. Why is
put_sprite_mask not functioning correctly?
--TurboSoft
Visit the TURBOSOFT HOMEPAGE: The most current Basic and C programs created
by TurboSoft for the 89, and the most 89 web links.
<A HREF="http://turbosoft.ticalc.org/">http://turbosoft.ticalc.org/</A>