Jump to content
Sign in to follow this  

Stella: breakif with strobe registers

Recommended Posts


I'm trying to trigger HMOVE without RSYNC, still at the right time. I suppose there is a way to trap a write only after the first color clock cycles.

But right how I'm stuck at

breakif { (_ccycle > 3) && WRITEAT(HMOVE) }

How can I tell Stella what to do at WRITEAT(HMOVE)?

Or can I somehow combine trapwrite with a function?


Or maybe something like thiis?

function strobeccycle { (_ccycle > 3) ? HMOVE : $7F }

trapwrite strobeccycle


Ideas anyone?

Share this post

Link to post
Share on other sites

In the current GIT repo we have a new set of commands: trapreadif, trapwriteif, etc, that combine a condition with a read/write trap. Sounds like exactly what you need. But I can't say when the next release will be; hopefully some time in the next month or so.


You're free to checkout and build from Git, of course.

  • Like 1

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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...