6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 5:58 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu Mar 03, 2005 12:42 pm 
Offline

Joined: Wed Mar 24, 2004 10:54 am
Posts: 38
The alternative is to do what Acorn did with the old BBC B and Master series. The 6502 was clocked at 2MHz but almost all of the I/O stuff (6522, 6850 etc) was clocked at 1MHz. They used a niffty cycle stretching circuit to gear the CPU's Phi2 up and down depending upon the relative phases of the 2MHz and 1MHz clocks every time I/O was needed.

Not as nice or elegant as using full speed I/O parts but it's an alternative. Details of this can be found in the Advanced User Guides on the BBC Documentation Project website www.bbcdocs.com under "Essentials". Take a look at either the Model B Advanced User Guide or BBC B Service Manual.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Mar 03, 2005 2:39 pm 
Offline

Joined: Wed Mar 24, 2004 10:54 am
Posts: 38
Hi Garth,

It appears that we're both correct about the internal execution of 6502 instructions! The aspects of this where we seem to disagree is not because one is right on the other is wrong, we having just been talking about different implemenations.

For the WDC implementation then their programming manual is the gospel. My dribblings were based on my recollection of the single step execution details given in Appendix A of the old MOS Microcomputer Hardware Manual (available from http://highgate.comm.sfu.ca/~rcini/clas ... y_docs.htm under "MOS Microcomputers Hardware Handbook - single archive 14.1MB). In that implementation there is no pre-fetching of instruction opcodes except for single byte instructions where the opcode of the next instruction is read during the second clock cycle but discarded. All other instructions are completed before the next opcode is read.

The Rockwell R6500 Programming Manual from the same site also gives a good write up on the extent of pipelining used in these early 6502's. Interestingly the programming manual seems to me to be identical to the old MOS one but with Rockwell covers - something which seems to be verified by the Rockwell R6500 Hardware Handbook - which IS the same damned book in different covers!

Interesting stuff.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Mar 03, 2005 3:01 pm 
Offline

Joined: Wed Mar 24, 2004 10:54 am
Posts: 38
Just been reading through the old Programming Manual and, guess what, this pre-fetching of opcodes is a case of "depends". One never ceases to be amazed at how time distorts one's recollection of how things worked!

Steve, download and have a good read of both these manuals - they'll tell you everything you want to know about the timing of each instruction....

Enjoy!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: