where are all the cycles? [message #387057] |
Sun, 15 September 2019 22:00 |
|
Originally posted by: melody
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 :)
|
|
|
Re: where are all the cycles? [message #387058 is a reply to message #387057] |
Mon, 16 September 2019 22:46 |
|
Originally posted by: James Davis
On Sunday, September 15, 2019 at 7:00:09 PM UTC-7, mel...@tech.org.au wrote:
> 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").
|
|
|
Re: where are all the cycles? [message #387059 is a reply to message #387058] |
Mon, 16 September 2019 22:56 |
|
Originally posted by: James Davis
On Monday, September 16, 2019 at 7:46:26 PM UTC-7, James Davis wrote:
> On Sunday, September 15, 2019 at 7:00:09 PM UTC-7, mel...@tech.org.au wrote:
>> 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").
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>"].
|
|
|
|
|
Re: where are all the cycles? [message #387163 is a reply to message #387162] |
Wed, 18 September 2019 21:21 |
|
Originally posted by: James Davis
On Wednesday, September 18, 2019 at 5:32:07 PM UTC-7, Michael J. Mahon wrote:
> fadden ... wrote:
>> On Monday, September 16, 2019 at 7:56:24 PM UTC-7, James Davis wrote:
>>> 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/SG TestData/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?
|
|
|
Re: where are all the cycles? [message #387165 is a reply to message #387163] |
Thu, 19 September 2019 12:48 |
Michael J. Mahon
Messages: 1767 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
James Davis <JPD.Enterprises@outlook.com> wrote:
> On Wednesday, September 18, 2019 at 5:32:07 PM UTC-7, Michael J. Mahon wrote:
>> fadden ... wrote:
>>> On Monday, September 16, 2019 at 7:56:24 PM UTC-7, James Davis wrote:
>>>> 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/SG TestData/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
|
|
|
Re: where are all the cycles? [message #387168 is a reply to message #387165] |
Thu, 19 September 2019 22:42 |
|
Originally posted by: James Davis
On Thursday, September 19, 2019 at 9:48:25 AM UTC-7, Michael J. Mahon wrote:
> James Davis wrote:
>> On Wednesday, September 18, 2019 at 5:32:07 PM UTC-7, Michael J. Mahon wrote:
>>> fadden ... wrote:
>>>> On Monday, September 16, 2019 at 7:56:24 PM UTC-7, James Davis wrote:
>>>> > 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/SG TestData/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.
|
|
|