🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #780

Re: Finding how much DSP56001 RAM is installed via program??

#780
From: Izumi Ohzawa
Date: Wed, 26 Aug 1992 07:17
38 lines
1795 bytes
In article <1992Aug26.060638.10407@ee.ubc.ca>
  williamb@ee.ubc.ca (william burchill) writes:
>A floating bus is not going to confuse a memory testing program, that's
>what it's looking for.  What do you mean "didn't work well"?

Well, at the risk of making myself look totally stupid, the following is a
simplified version of what I am trying to do.  I do use other test patterns
in addition to $5a5a5a.  Failure on any one pattern should break the loop.
The program just doesn't exit the loop.  I have never written a memory
test program, so please forgive some ignorance :-)  Thanks.

---------------------------------------------------------------------

ERAM_Base	equ	8192		; Start address of external DSP RAM on NeXT
	
	<some init stuff>

	move	#>ERAM_Base,R0
TestLoop
	move	#>$5a5a5a,b		;load test pattern
	move	b,x:(R0)		;write to a memory loc
	move	x:(R0)+,a		;read back into A1, post-incr address.
	cmp	a,b
	jne	memory_fail

	<same things with different test patterns>

	jmp	TestLoop

memory_fail
	<report R0 value to host>


--
Izumi Ohzawa
USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
Telephone: (510) 642-6440     Fax:  (510) 642-3323
Internet: izumi@pinoko.berkeley.edu (NeXT Mail OK)
Technical Details
Message-ID: <17fb61INN572@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!agate!usenet
References: <1992Aug26.060638.10407@ee.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!agate!usenet
From: izumi@pinoko.berkeley.edu (Izumi Ohzawa)
Newsgroups: comp.sys.next.programmer,comp.dsp
Subject: Re: Finding how much DSP56001 RAM is installed via program??
Date: 26 Aug 1992 07:17:21 GMT
Organization: University of California, Berkeley
Lines: 38
Distribution: world
Message-ID: <17fb61INN572@agate.berkeley.edu>
References: <1992Aug26.060638.10407@ee.ubc.ca>
Reply-To: izumi@pinoko.berkeley.edu
NNTP-Posting-Host: moica.berkeley.edu
Keywords: DSP, 56001, NeXT