fractional cycle counting - General - AtariAge Forums Jump to content Existing user? Sign In Sign In Remember me Not recommended on shared computers Sign In Forgot your password? Sign Up General Have You Played Atari Today? 2600 | 5200 | 7800 | Lynx | Jaguar | Forums | Store Forums Clubs Apps Blogs Gallery Events More All Activity My Activity Streams Status Updates More Leaderboard Staff Online Users Guidelines More Subscriptions More More Everywhere This Forum This Topic Status Updates Topics Blog Entries Images Albums Events Pages Products Members All Activity Home Clubs DASM General fractional cycle counting DASM Open Club ·  64 members General Overview Members Save IGNORED fractional cycle counting By RevEng March 1, 2020 in General Share More sharing options... Followers 2 Recommended Posts RevEng Posted March 1, 2020 RevEng Members 7,706 posts Location: ​ 🇨🇦 Share Posted March 1, 2020 I was playing with some timing-critical 7800 joystick-to-serial interface code, and while doing my cycle counts when it dawned on me that this may be the first time anybody has done 6502 cycle counts with fractional values... lda SWACNT ; 4.5 RIOT access slowdown is +0.5 cycle and #$fe ; 2 6.5 adc #$00 ; 2 8.5 sta SWACNT ; 4.5 13 On the 7800, the Maria chip generates the 6502 clock. If accesses to the TIA or RIOT register locations happen, Maria slows the 6502 clock down from 1.79Mhz to 1.19Mhz during the memory access part of the instruction, which amounts to +0.5 cycles. We don't do a lot of cycle-exact code on the 7800 as there's no need for a display kernel like with the 2600, which is why I think it may be a first. Since a lot of you come from the 2600 perspective, I thought you might find it interesting. 5 Link to comment Share on other sites More sharing options... + Andrew Davie Posted March 1, 2020 Andrew Davie + AtariAge Subscriber 5,982 posts Grumpy wise old wizard Location: Queensland Share Posted March 1, 2020 Neat. Perhaps some documentation on ways of showing cycle counts might be useful to some... Also, relating cycle counts to timer values for '2600 use would be useful too. Link to comment Share on other sites More sharing options... RevEng Posted March 2, 2020 RevEng Members 7,706 posts Location: ​ 🇨🇦 Author Share Posted March 2, 2020 A treatise on advanced counting, with a selection of count styles and discussion of timers (rounding, etc) would be interesting. Link to comment Share on other sites More sharing options... + Andrew Davie Posted March 2, 2020 Andrew Davie + AtariAge Subscriber 5,982 posts Grumpy wise old wizard Location: Queensland Share Posted March 2, 2020 Who do we know with a propensity and history of writing some sort of tutorial... kind of like a "cycle counting for newbies" thing....? :ponders: Link to comment Share on other sites More sharing options... RevEng Posted March 2, 2020 RevEng Members 7,706 posts Location: ​ 🇨🇦 Author Share Posted March 2, 2020 Nick Bensema? Or maybe you mean an extension to your 2600 tutorials - that would be great! 1 Link to comment Share on other sites More sharing options... Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. All Activity Home Clubs DASM General fractional cycle counting Theme AtariAge (Default) Dimension Deflection (Dark) Privacy Policy Contact Us Cookies Powered by Invision Community AtariAge Home 2600 5200 7800 Lynx Jaguar Forums Forum Home Clubs Blogs Gallery Subscriptions Store Store Home New Products Bestsellers Gift Certificates General Contact Submit News Privacy Policy Legal Mailing List --> Follow AtariAge Like us on Facebook AtariAge Facebook Group Follow us on Twitter AtariAge on Instagram Watch us on YouTube Chat on Discord Copyright ©1998-2023 AtariAge × Existing user? Sign In Sign Up Forums Clubs Apps Back Blogs Gallery Events All Activity My Activity Streams Back Status Updates More Back More Leaderboard Staff Online Users Guidelines Subscriptions × Create New...