home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!agate!stanford.edu!rock!concert!sas!mozart.unx.sas.com!jamie
- From: jamie@cdevil.unx.sas.com (James Cooper)
- Subject: Re: cmpi.l #,d16(pc) with SAS6asm, A68K, etc
- Originator: jamie@cdevil.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BxKq3t.E9q@unx.sas.com>
- Date: Wed, 11 Nov 1992 22:50:17 GMT
- References: <1dlshuINN6f6@werple.apana.org.au> <69309@cup.portal.com>
- Nntp-Posting-Host: cdevil.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 61
-
-
- In article <69309@cup.portal.com>, Aurelius@cup.portal.com (Mark Christian Barnes) writes:
- > Jim Cooper writes:
- >
- >|Interesting. The "M68000 Programmer's Reference Manual" from Motorola
- >|shows this as a valid addressing mode for this instruction for the whole
- >|M68000 family...
- >|-- ---------------
- >|Jim Cooper
- >|(jamie@unx.sas.com) bix: jcooper
- >
- > My copy of the M68000 Programmer's Reference Manual, 5th edition,
- >published in 1986 states:
- >
- >BEGIN QUOTE (quoted without permission)
- >
- >Only data alterable addressing modes are allowed as shown:
- >
- > Addr. Mode Mode Register
- > ========================================================
- > CMPI #<data>,(d16,An) 101 reg. number:An
- > CMPI #<data>,(d8,An,Xn) 110 reg. number:An
- > CMPI #<data>,(d16,PC) --- --------------
- > CMPI #<data>,(d8,PC,Xn) --- --------------
- >
- >END QUOTE
- >
- > This applies to the 68000, 68008, 68010, 68012 processors.
-
- This could get into an rwar, but...
-
- My copy of the Manual is dated 1989, and has the same quote, but lists
- the valid addressing modes in two separate tables, one that has modes
- which work on the whole family, and the other for 68020 and up.
-
- The heading at the top of the page says this instruction is valid for
- all members of the family, and the pertinent part of the table looks
- like this:
-
- Addr. Mode Mode Register
- ========================================================
- | (xxx).W | 111 | 000 |
- | (xxx).L | 111 | 001 |
- | #<data> | --- | --- |
- | | | |
- | | | |
- | (d16,PC) | 111 | 010 |
- | (d8,PC,Xn) | 111 | 011 |
- ========================================================
-
- Now the acid test is to execute this statement on a 68000, and see if it
- works or not... well, it doesn't crash my machine, but I'd have to spend
- a few minutes writing to actually see if it works or not... :-)
-
- --
- ---------------
- Jim Cooper
- (jamie@unx.sas.com) bix: jcooper
-
- Any opinions expressed herein are mine (Mine, all mine! Ha, ha, ha!),
- and not necessarily those of my employer.
-