Why asm sucks today.
Moderator: MaxCoderz Staff
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Why asm sucks today.
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
Re: Why asm sucks today.
Are you using Spasm for assembling it, and wabbitemu to debug?
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Re: Why asm sucks today.
No, would that work better?
I'm using brass (the old one, 1.something) and PTI
I'm using brass (the old one, 1.something) and PTI
-
- New Member
- Posts: 67
- Joined: Sun 09 Nov, 2008 1:56 pm
Re: Why asm sucks today.
if you think available debuggers suck, write your own
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Re: Why asm sucks today.
Yea I've tried, but accurately emulating the hardware was hard enough to give up..
The core itself is not that hard though
The core itself is not that hard though
Re: Why asm sucks today.
Or just improve WabbitEmu's already established debugger.darkstone knight wrote:if you think available debuggers suck, write your own
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: Why asm sucks today.
Yeah those little errors are annoying, its even worse when you have *forgotten* to put 1 little instruction in.
- kv83
- Maxcoderz Staff
- Posts: 2735
- Joined: Wed 15 Dec, 2004 7:26 pm
- Location: The Hague, Netherlands
- Contact:
Re: Why asm sucks today.
Spoiled brat. Back in the days we programmed in notepad and debugging was either using VTI or your own calc and pray for the best
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Re: Why asm sucks today.
Yea I guess I'm a little too used to visual studio.. conditional breakpoints ftwkv83 wrote:Spoiled brat.
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: Why asm sucks today.
I will admit that the Flash Debugger once helped me solve a problem that would have been more difficlut on other calc emulators since it has some decent debugging features. If only the emulation side of things was modelled on a real calculator ... (And not one that lets you get away with some pretty serious violations).
- benryves
- Maxcoderz Staff
- Posts: 3088
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: Why asm sucks today.
My biggest problem with Flash Debugger is its dreadful handling of keyboard input, rendering it virtually useless for games (especially if you intend on holding multiple keys down).
Re: Why asm sucks today.
For me, the worst common mistake is the backwards LD instruction. Seems that it happens way too often.
You know your hexadecimal output routine is broken when it displays the character 'G'.