Why asm sucks today.
Posted: Sat 23 May, 2009 10:42 am
And yesterday, that's when it started.
Anyway, I was debugging this stupid piece of code that would go berserk and fly into the C000 range at (seemingly) random. It was not ordinary code that flows in a relatively straight line, but the kind of code that jumps all over and pushes calculated addresses where it does a return on, excessively uses ports 6 and 7 etc. So I debugged all those stupid little tricks only to find out, after about 5 hours of debugging, that everything was caused by a stupid little "inc c" that I forgot to delete when copying and pasting code. Somehow it ended up affecting which ram page would be swapped in bank B.
And flaky debugging support is partly at fault here. How can I add breakpoints while already debugging? I don't always know ahead of time where I might need them
Anyway, I was debugging this stupid piece of code that would go berserk and fly into the C000 range at (seemingly) random. It was not ordinary code that flows in a relatively straight line, but the kind of code that jumps all over and pushes calculated addresses where it does a return on, excessively uses ports 6 and 7 etc. So I debugged all those stupid little tricks only to find out, after about 5 hours of debugging, that everything was caused by a stupid little "inc c" that I forgot to delete when copying and pasting code. Somehow it ended up affecting which ram page would be swapped in bank B.
And flaky debugging support is partly at fault here. How can I add breakpoints while already debugging? I don't always know ahead of time where I might need them