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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: Assembler programming.
  5. Message-ID: <1992Aug20.174409.990@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. References: <14419@mindlink.bc.ca>
  8. Date: Thu, 20 Aug 1992 17:44:09 GMT
  9. Lines: 36
  10.  
  11. In article <14419@mindlink.bc.ca> Charlie_Gibbs@mindlink.bc.ca (Charlie Gibbs) writes:
  12. >In article <1676@grivel.une.edu.au> cfiddyme@neumann.une.edu.au
  13. >(Chris Fiddyment) writes:
  14. >
  15. >>  Has anyone had a look at the disks brought out by the Amiga Coders Club.
  16. >>  They are from England. I am a beggining assembler programmer and need some
  17. >>  help compiling them with A68k.
  18. >>   e.g.  This line gives the error:
  19. >>           MOVE.L (a0,d0),d0
  20. >>                   ^ Undefined symbol.
  21. >
  22. >     The displacement is missing and A68k is getting confused.
  23. >The displacement is not optional on the 68000.  Some assemblers,
  24. >however, default it to zero.  A68k does not.  Someday I might find
  25. >the time to change this, but that will require a totally different
  26. >behaviour than when generating code for the 68020 and higher; these
  27. >processors allow you to omit the displacement from the generated
  28. >machine code as well.
  29. >
  30. >     For now, change the line to this:
  31. >
  32. >           MOVE.L 0(a0,d0),d0
  33. >
  34. >This is guaranteed to work on any assembler.
  35. >
  36. >Charlie_Gibbs@mindlink.bc.ca
  37. >I used to be indecisive, but now I'm not so sure.
  38. >
  39.  
  40.     That's strange. I have a book on the 68000 (by Sybex I think) that
  41. states that address indirect with index and address indirect with index and
  42. displacement are two seperate addressing modes. This is news to me.
  43.  
  44. jeff
  45.  
  46.  
  47.