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

  1. Xref: sparky comp.sys.next.programmer:5797 comp.dsp:2021
  2. Path: sparky!uunet!sun-barr!ames!agate!agate!usenet
  3. From: izumi@pinoko.berkeley.edu (Izumi Ohzawa)
  4. Newsgroups: comp.sys.next.programmer,comp.dsp
  5. Subject: Re: Finding how much DSP56001 RAM is installed via program??
  6. Date: 26 Aug 1992 07:17:21 GMT
  7. Organization: University of California, Berkeley
  8. Lines: 38
  9. Distribution: world
  10. Message-ID: <17fb61INN572@agate.berkeley.edu>
  11. References: <1992Aug26.060638.10407@ee.ubc.ca>
  12. Reply-To: izumi@pinoko.berkeley.edu
  13. NNTP-Posting-Host: moica.berkeley.edu
  14. Keywords: DSP, 56001, NeXT
  15.  
  16. In article <1992Aug26.060638.10407@ee.ubc.ca>
  17.   williamb@ee.ubc.ca (william burchill) writes:
  18. >A floating bus is not going to confuse a memory testing program, that's
  19. >what it's looking for.  What do you mean "didn't work well"?
  20.  
  21. Well, at the risk of making myself look totally stupid, the following is a
  22. simplified version of what I am trying to do.  I do use other test patterns
  23. in addition to $5a5a5a.  Failure on any one pattern should break the loop.
  24. The program just doesn't exit the loop.  I have never written a memory
  25. test program, so please forgive some ignorance :-)  Thanks.
  26.  
  27. ---------------------------------------------------------------------
  28.  
  29. ERAM_Base    equ    8192        ; Start address of external DSP RAM on NeXT
  30.     
  31.     <some init stuff>
  32.  
  33.     move    #>ERAM_Base,R0
  34. TestLoop
  35.     move    #>$5a5a5a,b        ;load test pattern
  36.     move    b,x:(R0)        ;write to a memory loc
  37.     move    x:(R0)+,a        ;read back into A1, post-incr address.
  38.     cmp    a,b
  39.     jne    memory_fail
  40.  
  41.     <same things with different test patterns>
  42.  
  43.     jmp    TestLoop
  44.  
  45. memory_fail
  46.     <report R0 value to host>
  47.  
  48.  
  49. --
  50. Izumi Ohzawa
  51. USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
  52. Telephone: (510) 642-6440     Fax:  (510) 642-3323
  53. Internet: izumi@pinoko.berkeley.edu (NeXT Mail OK)
  54.