home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
- From: bytey@werple.apana.org.au (Chris Hames)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: cmpi.l #,d16(pc) with SAS6asm, A68K, etc
- Date: 17 Nov 1992 11:36:23 +1100
- Organization: werple public-access unix, Melbourne
- Lines: 49
- Message-ID: <1e9eq7INN3vs@werple.apana.org.au>
- References: <1dlshuINN6f6@werple.apana.org.au> <69309@cup.portal.com> <BxKq3t.E9q@unx.sas.com>
- NNTP-Posting-Host: werple.apana.org.au
-
- jamie@cdevil.unx.sas.com (James Cooper) writes:
-
- >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... :-)
-
- Well I started this mini war of quotations so I will add what I have found.
- It appears that the cmp #<data>,(d16,PC) is only valid on the 68020 and
- higher processors. Besides being told this the instruction works on my
- 68030 and it crashed a friends 68000.
-
- The only problem is I haven't found one assembler which correctly handles
- it as such:-
-
- SAS 6 asm won't touch it no matter what processor switch.
- A68K won't touch it.
- Aztec as passes it no matter what processor.
- Asm-one asm won't touch it.
-
- >--
- >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.
-
- --
- Chris Hames
- Internet: bytey@werple.apana.org.au FidoNet: 3:633/353
-