home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!cs.uoregon.edu!news.uoregon.edu!nntp.uoregon.edu!cie.uoregon.edu!jlavin
- From: jlavin@cie.uoregon.edu (Jeff Lavin)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: cmpi.l #,d16(pc) with SAS6asm, A68K, etc
- Message-ID: <1992Nov18.003201.807@nntp.uoregon.edu>
- Date: 18 Nov 92 00:32:01 GMT
- Article-I.D.: nntp.1992Nov18.003201.807
- References: <69309@cup.portal.com> <BxKq3t.E9q@unx.sas.com> <1e9eq7INN3vs@werple.apana.org.au>
- Sender: news@nntp.uoregon.edu
- Organization: The Puzzle Factory
- Lines: 68
-
- In article <1e9eq7INN3vs@werple.apana.org.au> bytey@werple.apana.org.au (Chris Hames) writes:
- >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
-
-
- I just tried it under Macro68 V3.170. Assembling with the default
- 68000 cpu, it gives the error:
-
- Bad address mode for cpu type
-
- Adding the directive "mc68020" just before this line causes the assembly
- to be successful.
-
- One note: Under "strict" mode (what I use), the "cmpi" instruction must
- be used, rather than "cmp". Hope this helps.
-
- --
- The Puzzle Factory, Inc. | Jeff Lavin -- jlavin@cie.uoregon.edu
- Veneta, Oregon |-------------------------------------
- Voice : (503) 935-3709 | Remainder of signature line
- Data : (503) 935-7883 | under construction.
-