A92: This sprite code in C


[Prev][Next][Index][Thread]

A92: This sprite code in C




what's wrong with my following C sprite?  l've commented the troublesome 
lines.

sprite0(x,y)
    int x;
    int y;
{
asm("
    move.w 8(%sp),%d0
    move.w 10(%sp),%d1
    lea sprite(PC),%a0  this command works if l remove the (PC), but l need 
to put (PC) after sprite and the compiler doesn't like it.

sprite: dc.w    8
    dc.w    1
    dc.b    %00000000   having this line returns "bad expression."  l guess 
it's maybe because % is used to signal a register, but how do l do this 
command now?

mask:   dc.b    %00000000   same here.

    ");
put_sprite();
}