Article View: comp.dsp
Article #2591Re: assembly help question
From: Andrew Reilly
Date: Sat, 19 Jan 2002 21:21
Date: Sat, 19 Jan 2002 21:21
44 lines
2125 bytes
2125 bytes
On Sun, 20 Jan 2002 09:02:19 +1100, y_jim542000@yahoo.com wrote: > DSP is 56k motorola. > > Having a mydsp.asm file with: > start_it_here > . > . > . > end start_it_here This information doesn't appear to be relevant to the question that follows. If it is, then this answer is probably wrong... > Now, > having data file called: mydata.data > there is: > start_it_here > DC ... > DC ... > DC ... > END start_it_here (You'll need at least a space before each of those "DC" pseudo-ops on each line.) > how do i make the first two DC .. lines loop 20 times > and then go to the last DC .. line?. start_it_here dup 20 DC val_1 DC val_2 endm DC last_val end start_it_here The Motorola assembler manual, which describes dup (and it's several variants) in great detail is available on Motorola's web pages as a PDF. If you're doing much 56k coding, it will be handy to have it open beside you. -- Andrew Reilly
Technical Details
Message-ID:
<2rl28.1881$cS1.8568@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!intgwpad.nntp.telstra.net!news-server.bigpond.net.au!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8fcc,e78c93e97696ec65 X-Google-Attributes: gidf8fcc,public X-Google-Thread: 1133f6,e78c93e97696ec65 X-Google-Attributes: gid1133f6,public X-Google-ArrivalTime: 2002-01-19 13:21:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!intgwpad.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Andrew Reilly <andrew@gurney.reilly.home> Subject: Re: assembly help question Newsgroups: comp.dsp,fj.comp.dsp Reply-To: areilly@bigpond.net.au Organization: only me User-Agent: Pan/0.11.1.91 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "y_jim542000@yahoo.com" <u246063232@spawnkill.ip-mobilphone.net> X-No-Productlinks: Yes Lines: 44 Message-ID: <2rl28.1881$cS1.8568@news-server.bigpond.net.au> Date: Sat, 19 Jan 2002 21:21:02 GMT NNTP-Posting-Host: 144.132.240.160 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1011475262 144.132.240.160 (Sun, 20 Jan 2002 08:21:02 EST) NNTP-Posting-Date: Sun, 20 Jan 2002 08:21:02 EST