Jump to content


Stella: breakif with strobe registers


1 reply to this topic

#1 SvOlli OFFLINE  


    Chopper Commander

  • 214 posts
  • Location:Hannover, Germany

Posted Tue Oct 17, 2017 3:39 PM


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?

#2 stephena ONLINE  


    River Patroller

  • 3,360 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Tue Oct 17, 2017 5:26 PM

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.

  • gauauu likes this

Also tagged with one or more of these keywords: stella

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users