Count SymphoniC wrote:I've been doing this for about 3 weeks now... and the fact that I've managed to get a decent gui working, control the VDP, PSG and YM2612... more on the way, in 3 weeks time, speaks for itself. I'm not a programming prodigy, but I would like to be treated with a little bit more respect.
If you "not a programming prodigy" it does not mean that you may ask to find some bug. If you want to learn about Debug techniques: ask about techniques, not about bug!
Why it's useless to ask about finding bug? Because it may be in any part of your program. And that's why, you can't even imagine how some
very simple bug may cause some very wierd behavior. For example I had one interesting bug. I had code looks like this:
Code: Select all
move.b (some_var).l, d0
@loop:
// some code in loop
dbf d0, @loop
It was working fine, until some moment. And it was quite challenge to find it. I tried everything, it was hard, but I found it. What was wrong? Until some moment, previous code always forced high byte of d0 to zero, so loop was working as it should. But when I changed some code before, high byte of d0 might be $FF for example, that cause very long loop, because dbf works only with words. So fix is:
Code: Select all
clr.w d0
move.b (some_var).l, d0
@loop:
// some code in loop
dbf d0, @loop
So, it's completely useless to ask about your bugs, because only you can find them. But when you need to ask, is
when you think that you have bug in understanding. That's how to realize, that bug is in code, not in your viewing of things. So...
Always welcome for questions about understanding things. And, please, don't ask about bugs in your code.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Also, ask about "how to easily implement some thing", or "is it possible to do something" and so on.
Chilly Willy wrote:Sometimes we'll rant on the noob, but it's mostly things they need to hear.
I'll rant on anyone who is wrong in my opinion.
![Image](http://4.bp.blogspot.com/-VcrNn8AiWMc/Tq2CavD4Y1I/AAAAAAAABCs/iv07lVmamsE/s400/Someone+is+wrong+on+internet.png)
For example I already ranted on Delek, while his DefleMask was crushing every now and then, and he could not find the bug in his program, because he could not replicate it. He did for me around 20 different debug versions of his DefleMask to find this bug. And after he found bug, he was so suprised how simple bug was. Also, as far as I know, I'm in "thanks to" section because of that.