home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Aurelius
- From: Aurelius@cup.portal.com (Mark Christian Barnes)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Assembler programming.
- Message-ID: <64374@cup.portal.com>
- Date: Thu, 20 Aug 92 23:17:53 PDT
- Organization: The Portal System (TM)
- Distribution: world
- References: <14448@mindlink.bc.ca>
- Lines: 44
-
- Charlie Gibbs writes:
-
- |>That's strange. I have a book on the 68000 (by Sybex I think) that
- |>states that address indirect with index and address indirect with index and
- |>displacement are two seperate addressing modes. This is news to me.
- |
- |Hmm. The way I remember it (from Kane/Hawkins/Leventhal and
- |the Motorola books themselves), the modes are address register
- |indirect with displacement, and address register indirect with
- |index and displacement. The displacement is always there, at
- |least on the 68000 (things change on the '020). Could you
- |double-check your book? I'd be surprised if I (as well as
- |Brian Anderson, the author of the code I started from) missed
- |something so obvious, but I'd sure like to hear about it just
- |in case.
- |
- |Charlie_Gibbs@mindlink.bc.ca
-
- From the MC68000 Programmer's Reference Manual, 5th Edition.
-
- Paragraph 2.11.2.4: Address Register Indirect with Displacement
-
- ... The address of the operand is the sum of the address in the
- address register and the sign-extended 16-bit displacement integer
- in the extension word...
-
- SYNTAX: d16(An), or (d16, An)
-
- Paragraph 2.11.2.5: Address Register Indirect with Index
-
- ... The address of the operand is the sum of the address in the
- address register, the sign-extended displacement integer in the
- low order eight bits of the extension word, and the contents of
- the index register...
-
- SYNTAX: d8(An, Xn.W), or (d8, An, Xn.W)
- d8(An, Xn.L), or (d8, An, Xn.L)
-
- So, I would say that Charlie is correct in saying that the
- displacement is always present in these two addressing modes.
- However the word "displacement" is not in the title of both,
- at least not in my old, official tome, published in 1986 ;-].
-
- Regards, Aurelius@cup.portal.com
-