A89: Re: This sprite code in C
[Prev][Next][Index][Thread]
A89: Re: This sprite code in C
>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.
%PC - it's a technically a register, you need your % =)
>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.
Convert the binary to decimal (base 10) -- %00000000 = 0, %00000001 = 1,
%00000010 = 2, %00000011 = 3. . .
-Scott