Jump to content
Dave C

DASM/stella profiling tools?

Recommended Posts

Forgive me if I didn't RTFM enough on DASM or Stella. I am wondering if there are existing tools for analyzing 6502 assembly and suggesting optimizations. I didn't find anything obvious but I'm kind of guessing *something* exists...?

For example - I found a spot in some of my code where I loaded a register but never used its value in any way before reloading. Now maybe I might be using that for timing purposes but in this case it was just me blundering around changing things and losing track of what I was doing. It seems like something DASM - or Stella - would be able to call out though...

Similarly - unreachable code /data - locations in ROM that are initialized but never read during the run of a program. 

There are other situations - like - I have code that takes advantage of knowing for instance that y will happen to have value $ff and instead of doing a ldy #$0 it will do an iny to save a byte of code space. I'd like to set an inline assertion for Stella to break if that ever becomes untrue... that seems more like something that could be done with a little bit of build scripting...

Share this post

Link to post
Share on other sites

Well it is a lovely manual. Beautiful. But no, it has nothing about code analysis. there is a forum here though on 6502 tips and tricks.

Edited by Andrew Davie

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...