home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!tandem!zorch!amiga0!mykes
- From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Is this legal assembly code?
- Message-ID: <mykes.0cch@amiga0.SF-Bay.ORG>
- Date: 13 Aug 92 12:59:57 GMT
- References: <1992Aug11.122845.15395@mits.mdata.fi> <1992Aug11.140600.19866@mpifr-bonn.mpg.de> <1992Aug12.101739.17075@mits.mdata.fi>
- Organization: Amiga makes it possible
- Lines: 45
- X-NewsSoftware: GRn 1.16f (beta) by Mike Schwartz & Michael B. Smith
-
- In article <1992Aug12.101739.17075@mits.mdata.fi> rkaivola@mits.mdata.fi (Risto Kaivola) writes:
- > mlelstv@speckled.mpifr-bonn.mpg.de (Michael van Elst) writes:
- >
- > >In <1992Aug11.122845.15395@mits.mdata.fi> rkaivola@mits.mdata.fi (Risto Kaivola) writes:
- > >> I would like to know if the following assembly language program is
- > >>legal or illegal:
- >
- > [original example deleted]
- >
- > >Some Assemblers do this since they already need the same technique to
- > >optimize different length branches. Others will flag is an error
- > >and won't allow forward references in expressions. Others will
- > >try only a fixed number of passes (i.e. 2) and abort with a "phase error"
- > >when there are differences between the passes because a label changed
- > >place.
- >
- > So far, people who have replied have had quite mixed opinions about
- > this. I think I will support the feature, but in a later version. I
- > don't think it's a feature a typical assembly language program depends
- > on, and I believe there are a number of people who agree with me on that.
- > Thanks to everyone who has replied so far.
- >
-
- Copy lea buffer1,a0
- lea buffer2,a1
- move.w #buffer2-buffer1,d0 ; you better support this!
- .loop move.b (a0)+,(a1)+
- dbra d0,.loop
- ...
-
- buffer1 ds.b size
- buffer2 ds.b size
-
-
- >
- > --
- > Risto Kaivola
- > (Internet address: rkaivola@mits.mdata.fi)
-
- --
- Amiga programmer of: GRn, MailMinder, Budokan, Beyond Dark Castle, Dark Castle
- Sega Genesis programmer of: Dick Tracy and Marble Madness.
- Mike Schwartz (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
- 1124 Fremont Ave.
- Los Altos, CA 94024
-