home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12477 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!agate!rsoft!mindlink!a218
  2. From: Charlie_Gibbs@mindlink.bc.ca (Charlie Gibbs)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Assembler programming.
  5. Message-ID: <14419@mindlink.bc.ca>
  6. Date: 19 Aug 92 23:15:06 GMT
  7. Organization: MIND LINK! - British Columbia, Canada
  8. Distribution: world
  9. Lines: 27
  10.  
  11. In article <1676@grivel.une.edu.au> cfiddyme@neumann.une.edu.au
  12. (Chris Fiddyment) writes:
  13.  
  14. >  Has anyone had a look at the disks brought out by the Amiga Coders Club.
  15. >  They are from England. I am a beggining assembler programmer and need some
  16. >  help compiling them with A68k.
  17. >   e.g.  This line gives the error:
  18. >           MOVE.L (a0,d0),d0
  19. >                   ^ Undefined symbol.
  20.  
  21.      The displacement is missing and A68k is getting confused.
  22. The displacement is not optional on the 68000.  Some assemblers,
  23. however, default it to zero.  A68k does not.  Someday I might find
  24. the time to change this, but that will require a totally different
  25. behaviour than when generating code for the 68020 and higher; these
  26. processors allow you to omit the displacement from the generated
  27. machine code as well.
  28.  
  29.      For now, change the line to this:
  30.  
  31.            MOVE.L 0(a0,d0),d0
  32.  
  33. This is guaranteed to work on any assembler.
  34.  
  35. Charlie_Gibbs@mindlink.bc.ca
  36. I used to be indecisive, but now I'm not so sure.
  37.  
  38.