Why asm sucks today.

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Why asm sucks today.

Post by King Harold »

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
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Re: Why asm sucks today.

Post by kalan_vod »

Are you using Spasm for assembling it, and wabbitemu to debug?
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Re: Why asm sucks today.

Post by King Harold »

No, would that work better?
I'm using brass (the old one, 1.something) and PTI
darkstone knight
New Member
Posts: 67
Joined: Sun 09 Nov, 2008 1:56 pm

Re: Why asm sucks today.

Post by darkstone knight »

if you think available debuggers suck, write your own :pirate:
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Re: Why asm sucks today.

Post by King Harold »

Yea I've tried, but accurately emulating the hardware was hard enough to give up..
The core itself is not that hard though
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Re: Why asm sucks today.

Post by Halifax »

darkstone knight wrote:if you think available debuggers suck, write your own :pirate:
Or just improve WabbitEmu's already established debugger.
User avatar
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.

Post by tr1p1ea »

Yeah those little errors are annoying, its even worse when you have *forgotten* to put 1 little instruction in.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Re: Why asm sucks today.

Post by kv83 »

Spoiled brat. :P Back in the days we programmed in notepad and debugging was either using VTI or your own calc and pray for the best :rofl:
Image
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Re: Why asm sucks today.

Post by King Harold »

kv83 wrote:Spoiled brat.
Yea I guess I'm a little too used to visual studio.. conditional breakpoints ftw
User avatar
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.

Post by tr1p1ea »

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).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Why asm sucks today.

Post by benryves »

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).
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Re: Why asm sucks today.

Post by Dwedit »

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'.
Post Reply