home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15926 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.5 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
  2. From: bytey@werple.apana.org.au (Chris Hames)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: cmpi.l #,d16(pc) with SAS6asm, A68K, etc
  5. Date: 17 Nov 1992 11:36:23 +1100
  6. Organization: werple public-access unix, Melbourne
  7. Lines: 49
  8. Message-ID: <1e9eq7INN3vs@werple.apana.org.au>
  9. References: <1dlshuINN6f6@werple.apana.org.au> <69309@cup.portal.com> <BxKq3t.E9q@unx.sas.com>
  10. NNTP-Posting-Host: werple.apana.org.au
  11.  
  12. jamie@cdevil.unx.sas.com (James Cooper) writes:
  13.  
  14. >This could get into an rwar, but...
  15.  
  16. >My copy of the Manual is dated 1989, and has the same quote, but lists
  17. >the valid addressing modes in two separate tables, one that has modes
  18. >which work on the whole family, and the other for 68020 and up.
  19.  
  20. >The heading at the top of the page says this instruction is valid for
  21. >all members of the family, and the pertinent part of the table looks
  22. >like this:
  23.  
  24. >            Addr. Mode         Mode    Register
  25. > ========================================================
  26. > |      (xxx).W            |   111   |    000           |
  27. > |      (xxx).L            |   111   |    001           |
  28. > |      #<data>            |   ---   |    ---           |
  29. > |                         |         |                  |
  30. > |                         |         |                  |
  31. > |      (d16,PC)           |   111   |    010           |
  32. > |     (d8,PC,Xn)          |   111   |    011           |
  33. > ========================================================
  34.  
  35. >Now the acid test is to execute this statement on a 68000, and see if it
  36. >works or not... well, it doesn't crash my machine, but I'd have to spend
  37. >a few minutes writing to actually see if it works or not...  :-)
  38.  
  39. Well I started this mini war of quotations so I will add what I have found.
  40. It appears that the cmp #<data>,(d16,PC) is only valid on the 68020 and
  41. higher processors.  Besides being told this the instruction works on my
  42. 68030 and it crashed a friends 68000.
  43.  
  44. The only problem is I haven't found one assembler which correctly handles
  45. it as such:-
  46.  
  47. SAS 6 asm won't touch it no matter what processor switch.
  48. A68K won't touch it. 
  49. Aztec as passes it no matter what processor.
  50. Asm-one asm won't touch it.
  51.  
  52. >-- 
  53. >Jim Cooper
  54. >(jamie@unx.sas.com)                             bix: jcooper
  55. >Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  56. >and not necessarily those of my employer.
  57.  
  58. -- 
  59. Chris Hames
  60. Internet: bytey@werple.apana.org.au               FidoNet: 3:633/353
  61.