[A83] Re: 83p Problem with moving a sprite


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

[A83] Re: 83p Problem with moving a sprite




You can find mirageos.hex on Dan's member directory on tcpa:
http://tcpa.calc.org/members/dan/


>From: "Robby Proie" <playnogamz@nls.net>
>Reply-To: assembly-83@lists.ticalc.org
>To: <assembly-83@lists.ticalc.org>
>Subject: [A83] Re: 83p Problem with moving a sprite
>Date: Tue, 6 Mar 2001 20:00:21 -0500
>
>
>I thought of that, but I am programing for mirage.  I wrote to detacheds to
>send me mirage.hex so I can use an on-comp emulator, but they haven't sent
>it to me yet, and I was hoping someone could help me.  I know the stare and
>fix method (I've done that many times), and I've tried displaying each
>register on the calc, but that takes a long time, and then I have more code
>to debug.  I was just hoping that someone could take a look and see if 
>there
>was anything obvious that I was missing.  I didn't mean to be such a burden
>to you.
>
>-----Original Message-----
>From: assembly-83-bounce@lists.ticalc.org
>[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of David Phillips
>Sent: Tuesday, March 06, 2001 3:48 PM
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: 83p Problem with moving a sprite
>
>
>
>You need to learn perhaps the most important programming skill there is:
>debugging.  There are really two ways to debug assembly code.  The first 
>way
>is to just stare at it until you figure out what is wrong.  The second way
>is to use a debugger like VTI (which you are very lucky to have).  Load 
>your
>program into VTI.  Then, start up the debugger, and set a breakpoint on the
>starting address of your routine.  Then, step through the routine.  Keep an
>eye on your registers, and possibly a location in memory.  You will then be
>able to see exactly what the routine IS doing, instead of what you think it
>SHOULD be doing.  If you ask other people to debug your code for you
>everytime you have a problem, then you can't really write code.  Debugging
>is usually the hardest part of programming.(until you hit that point when
>you write perfect assembly code at least 95% of the time, which takes about
>a year of experience).
>
> > Hi.  I wrote this sprite routine that displays an 8x8 sprite, checks for
> > input, clears that sprite, jumps to input commans (ex. if the left key 
>was
> > pressed) and then draws the second sprite in the series.  It switches
> > between the two two sprites everytime it loops.  Now here is my problem,
>it
> > moves to the right just fine, but on certain spots when you move to the
>left
> > it gets stuck.  The getting stuck is always in the same place, and I
>cannot
> > figure out why.  PLEASE HELP ME!  Thanks in advance.
>
>
>
>
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Follow-Ups: