Qwe Posted November 27, 2014 Share Posted November 27, 2014 Hi friends,Where can I find the table of cycles for each instruction of the cpu? Thanks Quote Link to comment Share on other sites More sharing options...
Tezz Posted November 27, 2014 Share Posted November 27, 2014 Hi friends, Where can I find the table of cycles for each instruction of the cpu? Thanks Hi, I usually refer here when cycle counting http://www.6502.org/tutorials/6502opcodes.html regards, Tezz. Quote Link to comment Share on other sites More sharing options...
Qwe Posted November 27, 2014 Author Share Posted November 27, 2014 Thank you Tezz. Umh...I'm not sure the table mentioned above is applicable to Sally.I remember that indirect addressing was very slow on atari 8 bit (about 40 cycles) and that table is a lot optimistic...but may be I remember incorrectly. Quote Link to comment Share on other sites More sharing options...
Rybags Posted November 27, 2014 Share Posted November 27, 2014 (edited) The 6502 datasheet/manual has a decent one. There's opcode tables around that have the instructions on a 16x16 grid with cycle counts, operand size etc. Atari's 6502 is the same as the other legacy ones - ie they all suffer 1 lost cycle for branch over page boundary and indexed reads over page boundary. 65C02 in fact is slower for some instructions when in Decimal mode - but the N flag works properly when in D mode. There's probably better ones around but here's the PDF 6502 manual I have: 6502.pdf Edited November 27, 2014 by Rybags Quote Link to comment Share on other sites More sharing options...
Rybags Posted November 27, 2014 Share Posted November 27, 2014 Also note if you're cycle counting for the purpose of timing events that you should also consider Antic DMA activity which is highly variable depending on graphics mode and if PM graphics are active. Grab the Altirra hardware manual for some good info there. Quote Link to comment Share on other sites More sharing options...
flashjazzcat Posted November 27, 2014 Share Posted November 27, 2014 And Altirra's debugger will count cycles for you. Execution History: Right-Click->Timestamp Format->Show Cycles. Quote Link to comment Share on other sites More sharing options...
xxl Posted November 27, 2014 Share Posted November 27, 2014 undocumented Sally (6502C) opcodes: http://xxl.atari.pl/?p=824 Quote Link to comment Share on other sites More sharing options...
Qwe Posted November 27, 2014 Author Share Posted November 27, 2014 Thank you very much Quote Link to comment Share on other sites More sharing options...
Xuel Posted November 27, 2014 Share Posted November 27, 2014 Trevin Beattie's site is nice quick hardware reference for A8. His opcode table is fairly concise but uses different names for the undocumented opcodes than most others. 6510 references are also applicable, e.g. C= Hacking. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.