home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / apple2 / 25359 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  3.5 KB

  1. Path: sparky!uunet!noc.near.net!mars.caps.maine.edu!bates!lablues!larry
  2. From: larry@lablues.UUCP (Lawrance A. Schneider)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: question about CPU operations
  5. Message-ID: <83VmVB4w165w@lablues.UUCP>
  6. Date: Fri, 11 Dec 92 15:00:18 EST
  7. References: <1g1m31INN6tm@gap.caltech.edu>
  8. Organization: L/A Blues BBS - Auburn ME (207) 777-3465 & 7782
  9. Lines: 66
  10.  
  11. toddpw@cco.caltech.edu (Todd P. Whitesel) writes:
  12.  
  13. > dockery@griffin.cuc.ab.CA (Sean Dockery) writes:
  14. > >In the Apple II Reference Manual, it states that the 1.023MHz 6502
  15. > >requires approximately 300ns for a read operation and 100ns for a
  16. > >write operation.
  17. > This is true of the chip itself. However, there are requirements of the other
  18. > parts (memory, etc.) that affect the answer to the real question you're askin
  19. > >However, it is also documentation that performing a write operation is
  20. > >carried out by first performing a read of the datum in a memory
  21. > >location followed by a write of the datum in a given register.
  22. > Not all writes happen like that. I'd have to look things up to be sure, but I
  23. > believe it is that only indexed writes do that.
  24. > >    Does the write operation of the 6502 CPU require 400ns or the
  25. > >    100ns as stated?  I have a feeling that a write *operation*
  26. > >    actually requires but 100ns, but a write *instruction*
  27. > >    requires 400ns to execute.
  28. > You're getting really warm. A write *cycle* takes 978ns just like a read cycl
  29. > but the actual reading and writing takes different amounts of time depending
  30. > on which part of the system is doing it. A write *instruction* takes from 3 t
  31. > 5 (6 maybe?) cycles depending on which addressing mode you use, and each of
  32. > those cycles takes 978ns (except in the case of the "long" cycle; these happe
  33. > at the end of every video scan line).
  34. > >Can anyone clarify which is the case?  How long does it actually take?
  35. > As far as the CPU is concerned, the actual write takes 100ns. But there's oth
  36. > stuff that has to happen, and so it really takes more like 700ns or so; the C
  37. > has to feed out an address and the memory has to interpret and prepare to tak
  38. > the data, before actually getting it. Since there is also overhead in the CPU
  39. > switching to the next address and read/write operation, the overall cycle tim
  40. > is usually 978ns and this is enforced by the master timing generator.
  41. > This gets really complicated if you want to dig in any deeper -- I heartily
  42. > recommend Understanding The Apple II by Jim Sather, and The Apple II Circuit
  43. > Description. Both of these are great books for making sense of the intricate
  44. > elegance that is the Apple II.
  45. > Todd Whitesel
  46. > toddpw @ cco.caltech.edu
  47.  
  48. Todd, you elequently scribed the following:
  49.  
  50. |This gets really complicated if you want to dig in any deeper
  51. |-- I heartily recommend Understanding The Apple II by Jim Sather,
  52. |and The Apple II Circuit Description. Both of these are great
  53. |books for making sense of the intricate elegance that is the Apple II.
  54.  
  55. Where can I get _The Apple II Circuit Description_?  Does anyone have
  56. a copy they'd be willing to part with?            Thanks,   Larry
  57.  
  58. larry@lablues.UUCP
  59. FidoNet:  1:132/300 Larry Schneider
  60.  
  61.      / 7: "Wovon man nicht sprechen kann,  |  Larry Schneider
  62.     /      darueber muss man schweigen."   |  Bright Software
  63.    /                                       |  P. O. Box 120
  64.   /         Ludwig Wittgenstein            |  Exeter, ME
  65.  /     Tractatus Logico-Philosophicus      |       04435-0120
  66. (__________________________________________|  207=379-3181
  67.