home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15713 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.9 KB  |  75 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!agate!stanford.edu!rock!concert!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: cmpi.l #,d16(pc) with SAS6asm, A68K, etc
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BxKq3t.E9q@unx.sas.com>
  8. Date: Wed, 11 Nov 1992 22:50:17 GMT
  9. References: <1dlshuINN6f6@werple.apana.org.au> <69309@cup.portal.com>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 61
  13.  
  14.  
  15. In article <69309@cup.portal.com>, Aurelius@cup.portal.com (Mark Christian Barnes) writes:
  16. > Jim Cooper writes:
  17. >
  18. >|Interesting.  The "M68000 Programmer's Reference Manual" from Motorola
  19. >|shows this as a valid addressing mode for this instruction for the whole
  20. >|M68000 family...
  21. >|-- ---------------
  22. >|Jim Cooper
  23. >|(jamie@unx.sas.com)                             bix: jcooper
  24. >
  25. > My copy of the M68000 Programmer's Reference Manual, 5th edition,
  26. >published in 1986 states:
  27. >
  28. >BEGIN QUOTE (quoted without permission)
  29. >
  30. >Only data alterable addressing modes are allowed as shown:
  31. >
  32. >            Addr. Mode         Mode    Register
  33. > ========================================================
  34. > CMPI #<data>,(d16,An)         101     reg. number:An
  35. > CMPI #<data>,(d8,An,Xn)       110     reg. number:An
  36. > CMPI #<data>,(d16,PC)         ---     --------------
  37. > CMPI #<data>,(d8,PC,Xn)       ---     --------------
  38. >
  39. >END QUOTE
  40. >
  41. > This applies to the 68000, 68008, 68010, 68012 processors.
  42.  
  43. This could get into an rwar, but...
  44.  
  45. My copy of the Manual is dated 1989, and has the same quote, but lists
  46. the valid addressing modes in two separate tables, one that has modes
  47. which work on the whole family, and the other for 68020 and up.
  48.  
  49. The heading at the top of the page says this instruction is valid for
  50. all members of the family, and the pertinent part of the table looks
  51. like this:
  52.  
  53.             Addr. Mode         Mode    Register
  54.  ========================================================
  55.  |      (xxx).W            |   111   |    000           |
  56.  |      (xxx).L            |   111   |    001           |
  57.  |      #<data>            |   ---   |    ---           |
  58.  |                         |         |                  |
  59.  |                         |         |                  |
  60.  |      (d16,PC)           |   111   |    010           |
  61.  |     (d8,PC,Xn)          |   111   |    011           |
  62.  ========================================================
  63.  
  64. Now the acid test is to execute this statement on a 68000, and see if it
  65. works or not... well, it doesn't crash my machine, but I'd have to spend
  66. a few minutes writing to actually see if it works or not...  :-)
  67.  
  68. -- 
  69. ---------------
  70. Jim Cooper
  71. (jamie@unx.sas.com)                             bix: jcooper
  72.  
  73. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  74. and not necessarily those of my employer.
  75.