home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!fuug!mits!rkaivola
- From: rkaivola@mits.mdata.fi (Risto Kaivola)
- Subject: Re: Is this legal assembly code?
- Message-ID: <1992Aug14.093632.11949@mits.mdata.fi>
- Organization: Microdata International Telecomm Service, Helsinki, Finland
- References: <1992Aug11.122845.15395@mits.mdata.fi> <1992Aug11.140600.19866@mpifr-bonn.mpg.de> <1992Aug12.101739.17075@mits.mdata.fi> <mykes.0cch@amiga0.SF-Bay.ORG>
- Date: Fri, 14 Aug 1992 09:36:32 GMT
- Lines: 37
-
- mykes@amiga0.SF-Bay.ORG (Mike Schwartz) writes:
-
- >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
-
- True. We were discussing expressions in conditional assembly directives,
- however. For example,
-
- IFEQ buffer2-buffer1
- buffer4 rts
- buffer3 rts
- ENDC
- IFEQ buffer4-buffer3
- buffer2
- buffer1 rts
- ENDC
-
- I would say that this is an erroneus construct, and if I were to support
- forward references in the expressions of conditional assembly directives,
- (or more accurately, the IFxx directives), I would have to include checks
- for these kinds of things, or make them impossible via structural changes
- in the assembler. I'm not going to do that yet.
-
-
- >Mike Schwartz (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
-
-
- --
- Risto Kaivola
- (Internet address: rkaivola@mits.mdata.fi)
-