home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12305 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.5 KB  |  48 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!fuug!mits!rkaivola
  3. From: rkaivola@mits.mdata.fi (Risto Kaivola)
  4. Subject: Re: Is this legal assembly code?
  5. Message-ID: <1992Aug14.093632.11949@mits.mdata.fi>
  6. Organization: Microdata International Telecomm Service, Helsinki, Finland
  7. 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>
  8. Date: Fri, 14 Aug 1992 09:36:32 GMT
  9. Lines: 37
  10.  
  11. mykes@amiga0.SF-Bay.ORG (Mike Schwartz) writes:
  12.  
  13. >Copy        lea    buffer1,a0
  14. >        lea    buffer2,a1
  15. >        move.w    #buffer2-buffer1,d0    ; you better support this!
  16. >.loop        move.b    (a0)+,(a1)+
  17. >        dbra    d0,.loop
  18. >        ...
  19.  
  20. >buffer1        ds.b    size
  21. >buffer2        ds.b    size
  22.  
  23. True.  We were discussing expressions in conditional assembly directives,
  24. however.  For example,
  25.  
  26.                 IFEQ buffer2-buffer1
  27. buffer4         rts
  28. buffer3         rts
  29.                 ENDC
  30.                 IFEQ buffer4-buffer3
  31. buffer2
  32. buffer1         rts
  33.                 ENDC
  34.  
  35. I would say that this is an erroneus construct, and if I were to support
  36. forward references in the expressions of conditional assembly directives,
  37. (or more accurately, the IFxx directives), I would have to include checks
  38. for these kinds of things, or make them impossible via structural changes
  39. in the assembler.  I'm not going to do that yet.
  40.  
  41.  
  42. >Mike Schwartz  (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
  43.  
  44.  
  45. -- 
  46. Risto Kaivola
  47. (Internet address:   rkaivola@mits.mdata.fi)
  48.