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

  1. Path: sparky!uunet!portal!cup.portal.com!Aurelius
  2. From: Aurelius@cup.portal.com (Mark Christian Barnes)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Assembler programming.
  5. Message-ID: <64374@cup.portal.com>
  6. Date: Thu, 20 Aug 92 23:17:53 PDT
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. References:  <14448@mindlink.bc.ca>
  10. Lines: 44
  11.  
  12. Charlie Gibbs writes:
  13.  
  14. |>That's strange. I have a book on the 68000 (by Sybex I think) that
  15. |>states that address indirect with index and address indirect with index and
  16. |>displacement are two seperate addressing modes. This is news to me.
  17. |
  18. |Hmm.  The way I remember it (from Kane/Hawkins/Leventhal and
  19. |the Motorola books themselves), the modes are address register
  20. |indirect with displacement, and address register indirect with
  21. |index and displacement.  The displacement is always there, at
  22. |least on the 68000 (things change on the '020).  Could you
  23. |double-check your book?  I'd be surprised if I (as well as
  24. |Brian Anderson, the author of the code I started from) missed
  25. |something so obvious, but I'd sure like to hear about it just
  26. |in case.
  27. |
  28. |Charlie_Gibbs@mindlink.bc.ca
  29.  
  30. From the MC68000 Programmer's Reference Manual, 5th Edition.
  31.  
  32. Paragraph 2.11.2.4: Address Register Indirect with Displacement
  33.  
  34.  ... The address of the operand is the sum of the address in the
  35. address register and the sign-extended 16-bit displacement integer
  36. in the extension word...
  37.  
  38.  SYNTAX:  d16(An), or (d16, An)
  39.  
  40. Paragraph 2.11.2.5: Address Register Indirect with Index
  41.  
  42.  ... The address of the operand is the sum of the address in the
  43. address register, the sign-extended displacement integer in the
  44. low order eight bits of the extension word, and the contents of
  45. the index register...
  46.  
  47.  SYNTAX:  d8(An, Xn.W), or (d8, An, Xn.W)
  48.           d8(An, Xn.L), or (d8, An, Xn.L)
  49.  
  50. So, I would say that Charlie is correct in saying that the
  51. displacement is always present in these two addressing modes.
  52. However the word "displacement" is not in the title of both,
  53. at least not in my old, official tome, published in 1986 ;-].
  54.  
  55.             Regards, Aurelius@cup.portal.com
  56.