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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mips!sdd.hp.com!usc!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: Assembler programming.
  5. Message-ID: <1992Aug21.220718.24365@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. References: <14448@mindlink.bc.ca> <64374@cup.portal.com>
  8. Date: Fri, 21 Aug 1992 22:07:18 GMT
  9. Lines: 33
  10.  
  11. In article <64374@cup.portal.com> Aurelius@cup.portal.com (Mark Christian Barnes) writes:
  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. >Paragraph 2.11.2.5: Address Register Indirect with Index
  19. >
  20. > ... The address of the operand is the sum of the address in the
  21. >address register, the sign-extended displacement integer in the
  22. >low order eight bits of the extension word, and the contents of
  23. >the index register...
  24. >
  25. > SYNTAX:  d8(An, Xn.W), or (d8, An, Xn.W)
  26. >          d8(An, Xn.L), or (d8, An, Xn.L)
  27. >
  28. >So, I would say that Charlie is correct in saying that the
  29. >displacement is always present in these two addressing modes.
  30. >However the word "displacement" is not in the title of both,
  31. >at least not in my old, official tome, published in 1986 ;-].
  32. >
  33. >            Regards, Aurelius@cup.portal.com
  34.  
  35. I stand corrected. Quite unnerving to think that in situations where address
  36. register indirect with index type addressing is used (i.e. null terminating
  37. a string: move.b #0,(a0,d0.w) ) requires an additional memory read _just_
  38. to find out that the displacement value wasn't given (zero). The assembler I
  39. use obviously assumes a zero displacement value in the event I don't specify
  40. one, because it doesn't complain. 
  41.  
  42. jeff
  43.  
  44.