Jump to content
Sign in to follow this  
Xebec

6502 bus access/timings on A8

Recommended Posts

Hey folks - 

 

Where do you recommend I go to read up on how 6502 bus access and instruction timing works on the 8bit?    I know very basics - that instructions on 6502 are variable latency,  that the bus is shared with other chips, and ANTIC can effectively halt the CPU / executes it's own instructions.  

 

I'm specifically looking to learn / understand a little more about :

- How often can the 6502 read/write from main memory (typical use, and with "graphics off")

- Knowing that 6502 instruction timing is variable - learn about which instructions are bus limited and which aren't (are any?)

- Review the definitive list of how many clock cycles different instructions on 6502 take

- Also curious about the instruction set of ANTIC - what it can do 

 

Thanks!

John

  • Like 1

Share this post


Link to post
Share on other sites

I cannot find it that quickly, but there's a MOS publication that describes exactly what happens in all phases of the clock, each cycle, for each instruction, i.e. the whole state machine. I'm SURE it is somewhere on my backup drive, but I can't find it. Anybody knows which document I mean?

 

  • Like 2

Share this post


Link to post
Share on other sites
4 hours ago, ivop said:

I cannot find it that quickly, but there's a MOS publication that describes exactly what happens in all phases of the clock, each cycle, for each instruction, i.e. the whole state machine. I'm SURE it is somewhere on my backup drive, but I can't find it. Anybody knows which document I mean?

 

There's also an online 6502 that you can watch in real time.  visual6502.org

  • Like 2

Share this post


Link to post
Share on other sites

For basic ANTIC overview (also GTIA and POKEY) I suggest wikipedia: https://en.wikipedia.org/wiki/ANTIC

For instruction timing I use this page: https://www.masswerk.at/6502/6502_instruction_set.html

As for the buss access, you won't be too off if you assume every cycle reads or writes memory.

Altirra hardware reference manual (mentioned above) goes into depths into how it all works together. But the basic structure is - Antic does the DMA (and memory refreshes), CPU uses whatever cycles are left. In normal graphical mode, outside blank areas, 1 cycle goes to Antic, 1 cycle goes to CPU (with exceptions, of course). But that should give you rough idea.

Edited by R0ger
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...