[A83] Re: 83p Problem with moving a sprite
[Prev][Next][Index][Thread]
[A83] Re: 83p Problem with moving a sprite
There's also a method of debugging where you intersperse your code with
commands to displays the values of registers and such so you don't have to
step through. That's a bit more useful in C than in asm though :-)
In a message dated 3/6/01 3:48:32 PM Eastern Standard Time, david@acz.org
writes:
> 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).
----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org
Follow-Ups: