Discussion:
where are all the cycles?
(too old to reply)
m***@tech.org.au
2019-09-16 02:00:09 UTC
Permalink
Hi everyone,

We're trying to get cycle-accurate rendering working in microM8, and we're almost there, but we appear to be missing some hidden cycles somewhere - does anyone have a comprehensive list of everything that adds a cycle?

Thanks :)
James Davis
2019-09-17 02:46:24 UTC
Permalink
Post by m***@tech.org.au
Hi everyone,
We're trying to get cycle-accurate rendering working in microM8, and we're almost there, but we appear to be missing some hidden cycles somewhere - does anyone have a comprehensive list of everything that adds a cycle?
Thanks :)
Download from Asimov:

"Programming the 6502" by Rodnay Zaks; or the Synertec 65xx manual(s).

The former goes into great detail about each op-code. Both have op-code charts with the desired info., also (e.g., like "the periodic table of the elements"; I call it, "the periodic table of the op-codes").
James Davis
2019-09-17 02:56:23 UTC
Permalink
Post by James Davis
Post by m***@tech.org.au
Hi everyone,
We're trying to get cycle-accurate rendering working in microM8, and we're almost there, but we appear to be missing some hidden cycles somewhere - does anyone have a comprehensive list of everything that adds a cycle?
Thanks :)
"Programming the 6502" by Rodnay Zaks; or the Synertec 65xx manual(s).
The former goes into great detail about each op-code. Both have op-code charts with the desired info., also (e.g., like "the periodic table of the elements"; I call it, "the periodic table of the op-codes").
P.S. Somebody should just program this chart into their disassemblers or debuggers to give the cycles used with each line of disassembly in the comment field in parentheses [e.g., "... ;(<#-of-cycles>) <real-comments>"].
fadden
2019-09-17 04:56:41 UTC
Permalink
Post by James Davis
P.S. Somebody should just program this chart into their disassemblers or debuggers to give the cycles used with each line of disassembly in the comment field in parentheses [e.g., "... ;(<#-of-cycles>) <real-comments>"].
Something like this?

https://github.com/fadden/6502bench/blob/master/SourceGen/SGTestData/Expected/2020-cycle-counts-65816_Merlin32.S
Michael J. Mahon
2019-09-19 00:32:02 UTC
Permalink
Post by fadden
Post by James Davis
P.S. Somebody should just program this chart into their disassemblers
or debuggers to give the cycles used with each line of disassembly in
the comment field in parentheses [e.g., "... ;(<#-of-cycles>) <real-comments>"].
Something like this?
https://github.com/fadden/6502bench/blob/master/SourceGen/SGTestData/Expected/2020-cycle-counts-65816_Merlin32.S
And for cycle-by-cycle detail, the summary pages in “Understanding the
Apple //e” by Jim Sather can’t be beat!
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
James Davis
2019-09-19 01:21:35 UTC
Permalink
Post by Michael J. Mahon
Post by fadden
Post by James Davis
P.S. Somebody should just program this chart into their disassemblers
or debuggers to give the cycles used with each line of disassembly in
the comment field in parentheses [e.g., "... ;(<#-of-cycles>) <real-comments>"].
Something like this?
https://github.com/fadden/6502bench/blob/master/SourceGen/SGTestData/Expected/2020-cycle-counts-65816_Merlin32.S
And for cycle-by-cycle detail, the summary pages in “Understanding the
Apple //e” by Jim Sather can’t be beat!
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Are you referring to Appendix C, page 6 (labeled: C-6)? Or, something else?
Michael J. Mahon
2019-09-19 16:48:20 UTC
Permalink
Post by James Davis
Post by Michael J. Mahon
Post by fadden
Post by James Davis
P.S. Somebody should just program this chart into their disassemblers
or debuggers to give the cycles used with each line of disassembly in
the comment field in parentheses [e.g., "... ;(<#-of-cycles>) <real-comments>"].
Something like this?
https://github.com/fadden/6502bench/blob/master/SourceGen/SGTestData/Expected/2020-cycle-counts-65816_Merlin32.S
And for cycle-by-cycle detail, the summary pages in “Understanding the
Apple //e” by Jim Sather can’t be beat!
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Are you referring to Appendix C, page 6 (labeled: C-6)? Or, something else?
I’m referring to pages 4-27 and 4-28, which detail not only the number of
cycles required by each operation, but the bus activity on each cycle.
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
James Davis
2019-09-20 02:42:31 UTC
Permalink
Post by Michael J. Mahon
Post by James Davis
Post by Michael J. Mahon
Post by fadden
Post by James Davis
P.S. Somebody should just program this chart into their disassemblers
or debuggers to give the cycles used with each line of disassembly in
the comment field in parentheses [e.g., "... ;(<#-of-cycles>) <real-comments>"].
Something like this?
https://github.com/fadden/6502bench/blob/master/SourceGen/SGTestData/Expected/2020-cycle-counts-65816_Merlin32.S
And for cycle-by-cycle detail, the summary pages in “Understanding the
Apple //e” by Jim Sather can’t be beat!
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Are you referring to Appendix C, page 6 (labeled: C-6)? Or, something else?
I’m referring to pages 4-27 and 4-28, which detail not only the number of
cycles required by each operation, but the bus activity on each cycle.
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Thanks for clarifying that.

Loading...