home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5826 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.5 KB

  1. Xref: sparky comp.sys.next.programmer:5826 comp.dsp:2041
  2. Newsgroups: comp.sys.next.programmer,comp.dsp
  3. Path: sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!speckled.mpifr-bonn.mpg.de!mlelstv
  4. From: mlelstv@speckled.mpifr-bonn.mpg.de (Michael van Elst)
  5. Subject: Re: Finding how much DSP56001 RAM is installed via program??
  6. Message-ID: <1992Aug27.123806.19051@mpifr-bonn.mpg.de>
  7. Keywords: DSP, 56001, NeXT
  8. Sender: news@mpifr-bonn.mpg.de
  9. Nntp-Posting-Host: speckled
  10. Organization: Max-Planck-Institut f"ur Radioastronomie
  11. References: <1992Aug26.060638.10407@ee.ubc.ca> <17fb61INN572@agate.berkeley.edu>
  12. Date: Thu, 27 Aug 1992 12:38:06 GMT
  13. Lines: 31
  14.  
  15. In <17fb61INN572@agate.berkeley.edu> izumi@pinoko.berkeley.edu (Izumi Ohzawa) writes:
  16. >TestLoop
  17. >    move    #>$5a5a5a,b        ;load test pattern
  18. >    move    b,x:(R0)        ;write to a memory loc
  19. >    move    x:(R0)+,a        ;read back into A1, post-incr address.
  20. >    cmp    a,b
  21. >    jne    memory_fail
  22.  
  23. Due to bus capacitance the read back will most often read the previously
  24. written value. You can circumvent that by writing a different value to a
  25. different address in between. F.e.:
  26.  
  27.     move  #>$5a5a5a,x0
  28.     move  #>$272727,x1
  29.  
  30.     ...
  31.  
  32.     move x0,x:(r0)+
  33.     move x1,x:(r0)-        ; dummy write to next cell (make sure that this
  34.                         ; doesn't cause problems at the end of your memory)
  35.     move x:(r0)+,a
  36.     eor x0,a
  37.     jne memory_fail
  38.  
  39.  
  40. Regards,
  41. -- 
  42. Michael van Elst
  43. UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
  44. Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
  45.                                 "A potential Snark may lurk in every tree."
  46.