Re: A86: re: moving sprites


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

Re: A86: re: moving sprites



Mark Zimmerman wrote:
> 
> so if I wanted to do that putsprite routine to start at 25 and end at about
> 50 I would do this:
> stuff:
> 
>         ld      a,24
>         ld      e,something
>         .
>         .
>         .
>         call Putsprite
>         ld      a,b
>         inc     a
>         cp      50
>         jp      z,somewhere
>         jp      stuff
> 
> Is this right? I don't want to type it in and compile it if it ends up to
> be wrong.
> 
> Jeff Zimmerman
> gramdon@mail2.theonramp.net
> 
> ----------
> > From: TreyJazz <joemama@minot.com>
> > To: assembly-86@lists.ticalc.org
> > Subject: Re: A86: re: moving sprites
> > Date: Thursday, December 04, 1997 4:14 PM
> >
> > Mark Zimmerman wrote:
> > >
> > > When using the CP instruction, what is it comparing to?
> > > for example...
> > >
> > > cp      50
> > >
> > > what is it comparing 50 to, which register?
> >
> > to the accumulator, register a

yep thats how to do it, just remember to push and pop the values in and
out of bc to save the coords, also...remember you have to do a little
wait and then put the pic on at the same coords (if you dont use
clrScrn) if you want to erase the sprite


References: