home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / m6809 / 565 < prev    next >
Encoding:
Text File  |  1993-01-05  |  31.4 KB  |  790 lines

  1. Newsgroups: comp.sys.m6809
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!bruny.cc.utas.edu.au!tmorris
  3. From: tmorris@bruny.cc.utas.edu.au (Tim Morris)
  4. Subject: Re: Chet Simpson's 6309 (extra ops) manual
  5. Message-ID: <tmorris.726217387@bruny>
  6. Sender: news@newsroom.utas.edu.au
  7. Organization: University of Tasmania, Australia.
  8. References: <1992Dec29.025202.1166@news.jit.dec.com>
  9. Date: Tue, 5 Jan 1993 07:03:07 GMT
  10. Lines: 778
  11.  
  12. Reposted without the consent of the original author... I hope he doesn't
  13. mind...
  14.  
  15. ---------------------- included article follows ------------------------
  16.  
  17. From: kakugawa@csl.hiroshima-u.ac.jp (Hirotsugu Kakugawa)
  18. Newsgroups: comp.sys.m6809
  19. Subject: A Memo on the Secret Features of 6309
  20. Date: 23 Feb 92 01:10:06 GMT
  21. Distribution: comp
  22. Organization: Computer Systems Lab., Faculty of Engineering, Hiroshima Univ.,
  23.     Japan.
  24.  
  25. Dear 6309 users
  26.  
  27.    I finished my exam and writing the memo on the seacret features of
  28. 6309.  In the memo, many fearutes of 6309 are reported but I do not
  29. know ALL of them.  In addition to that, my 6309 computer is packed and
  30. kept in my hometown: I cannot tried unclear points.
  31.  
  32. [
  33.   NOTE:
  34.    You may have questions about the features written in this meno. 
  35.    Then, please post your question to comp.sys.m6809; do not send mails
  36.    to me.  I may not answer your questions since I cannot try the 
  37.    features now, as I write above.  Your questions may be answered by
  38.    people who has 6309 based computer.
  39. ]
  40.  
  41. The meno is not complete.
  42. Please try and post the results to comp.sys.m6809!
  43.  
  44.  
  45.   ===*===*===*===*===*===*===*===*===*===*===*===*===*===*===*===
  46.  
  47.  
  48.  
  49.               A MEMO ON THE SECRET FEATURES OF 6309 
  50.  
  51.  
  52.       by Hirotsugu Kakugawa,  (kakugawa@csl.hiroshima-u.ac.jp)
  53.       Computer Systems Lab., Information Engineering Course,
  54.       Graduate School of Engineering, Hiroshima Univ., Japan
  55.  
  56.  
  57.  
  58. 1. ** INTRODUCTION **
  59.  
  60. The CPU 6309 by HITACHI has secret features which is not written in
  61. its manual.  The purpose of this memo is to introduce them.  
  62. The features was originally reported in a magazine, 
  63. Oh!FM (1988 Apr.), which was written in Japanese.  I did not tried all
  64. of the features reported in the article, but I report the features as
  65. far as I know. 
  66.  
  67. HITACHI says in the manual of 6309 that 6309 is compatible with 6809,
  68. but some OS-9 hackers found that it has secret features.
  69.  
  70. It has following features:
  71.  1. More registers (additional two 8 bit accumulators, 8 bit
  72.      register, and a 16 bit register), 
  73.  2. Two modes (6809 emulation mode and native mode),
  74.  3. Reduced execution cycles in native mode,
  75.  4. More instructions (16 bit x 16 bit multiplication, 32 bit / 16 bit
  76.     division, inter-registers operation, block transfer, bit
  77.     manipulating operation which is compatible with 6801 has, etc)
  78.  5. Error trap by illegal instruction, zero division.
  79.  
  80. I substituted 6309 for 6809 in my personal computer, and I changed
  81. OS9/6809 Level II such that the 6309 executes in native mode.
  82. I had to change the interrupt handling routine in the kernel.
  83. I implemented illegal instruction trap; I was really happy because
  84. most bugs are caught by trap handler.
  85.  
  86. In section 2, new registers are explained.  In section 3, two modes of
  87. 6309 is explained.  In section 4, trapping features of the 6309 is
  88. described.  In section 5, new instructions are explained.  In section 6,
  89. the instruction tables of the 6309 is shown.
  90.  
  91.  
  92.  
  93. 2. ** NEW REGISTERS **
  94.  
  95. The 6309 has some additional registers that 6809 does not.  
  96.  
  97.   1. The E register, the F register 
  98.      These are 8 bit accumulators.  Like the D register is a pair of 
  99.      the A register and the B register, these two registers can be
  100.      used as a 16 bit accumulator. The pair of the E and the F
  101.      registers is called the W register.
  102.      In addition to that, pair of two 16 bit registers, the D register
  103.      and the W register, can be used as a 32 bit accumulator called the
  104.      Q register.
  105.  
  106.   2. The V register
  107.      This a 16 bit register can be used only by TFR, inter-register
  108.      operation, etc.  But even if the chip is reseted, contents of
  109.      this register does not change.  Some people  may use this
  110.      register to keep constant value (V for value).
  111.  
  112.   3. The MD register
  113.      This is a 8 bit register to keep the mode and status of the chip.
  114.      The meaning of each bit is as follow.
  115.  
  116.      Read value
  117.         bit 7  ---  1 is set if zero division happen.
  118.         bit 6  ---  1 is set if illegal instruction is fetched.
  119.  
  120.      Write value 
  121.         bit 1  ---  The mode for FIRQ interrupt.
  122.                     0 -> the the action for FIRQ is the same as that
  123.                          of 6809.
  124.                     1 -> the the action for FIRQ is the same as IRQ.
  125.         bit 0  ---  The execution mode of 6309.
  126.                     0 -> the emulation mode.
  127.                     1 -> the native mode.
  128.  
  129.      (When the chip is reseted, all bits are 0.) 
  130.  
  131.  
  132.  
  133. 3. ** TWO MODES OF THE 6309 **
  134.  
  135. The 6309 has two modes, emulation mode and native mode, as described
  136. in the previous section.  When the chip is reseted, the initial mode
  137. of 6309 is the emulation mode. 
  138.  
  139.   When the 6309 is in the emulation mode, the chip emulates the action
  140. of 6809.  But we can use extended registers and extended operations in
  141. this mode.  The 6309 executes instructions in the same cycles as 6809
  142. does.   
  143.    When the 6309 is in the native mode, it executes instructions in
  144. less cycles. And when the chip is interrupted (IRQ, for example), 
  145. it pushes extended registers (PC, U, Y, X, DP, W, D, CC, in this
  146. order).  If you want to use the 6309, you must rewrite interrupt
  147. handling routine (for example, the entry of system call of OS9).
  148.  
  149.  
  150.  
  151. 4. ** TRAPPING **
  152.  
  153. If the following two events happen, the trap is caused.
  154.  
  155.   1. A illegal instruction is fetched.
  156.   2. A number is divided by zero.
  157.  
  158. The action of the 6309 when a trap is caused is :
  159.  
  160.   1. Pushs the registers on the system stack.
  161.      (In the emulation mode, PC, U, Y, X, DP, B, A, CC, in this order
  162.      and in the the native mode, PC, U, Y, X, DP, W, B, A, CC in this
  163.      order) 
  164.   2. Reads the trap vector address ($FFF0) and jumps to the vector.
  165.      (Note that $FFF0 was reserved by 6809.)
  166.  
  167. To check the reason of the trap, BITMD instruction is provided. This
  168. instruction is explained in a later section.
  169.  
  170.  
  171.  
  172. 5. ** NEW INSTRUCTIONS **
  173.  
  174. 5.1 The Register Addressing Mode
  175. To specify registers in TFR and EXG, the 6809 uses bit pattern of 4 bits. 
  176. New registers of the 6309 are specified by bit patterns in TFR and EXG
  177. operations. In addition to that, the bit pattern is also used in
  178. instructions of inter-register operations.  We call this bit pattern
  179. used to specify register "register addressing mode".
  180.  
  181. Bit patterns for new registres are as follows:
  182.  
  183.     W  ->  0110,
  184.     V  ->  0111,
  185.     E  ->  1110,
  186.     F  ->  1111.
  187.  
  188. NOTE: even if the 6309 is in a emulation mode, the action for TFR of 6309 
  189. is different from that of the 6809 if new register is specified in
  190. operand.  Some hackers found this fact and they guessed that the 6309
  191. has secret registers. At last, they found many features.
  192.  
  193. 5.2 Inter-Register Operations
  194. Operations of 6809 are operations between register and immediate value
  195. or between register and memory.  Therefore, we had to store value of 
  196. register on memory if opetation between two registers is necessary.
  197.   But the 6309 has inter-register operation. Following operations are 
  198. provided:
  199.     ADDR r0,r1  (ADD of two registers),
  200.     ADCR r0,r1  (ADC of two registers),
  201.     SUBR r0,r1  (SUB of two registers),
  202.     SBCR r0,r1  (SBC of two registers),
  203.     ANDR r0,r1  (AND of two registers),
  204.     ORR  r0,r1  (OR of two registers),
  205.     EORR r0,r1  (EOR of two registers),
  206.     CMPR r0,r1  (CMP of two registers).
  207. The register addressing mode is used to specify two registers.
  208. (I do not remember exactrlly but the result is stored in r0, the
  209. register of the first operand. Please try and find the behavior of
  210. these instructions.)
  211.  
  212. 5.3 Block Transfer
  213. Block transfer instructions are provided such as Z80 has.
  214. The TFM instruction requires source address and destination address 
  215. and block size as its argument.  One or two 16 bit registers (X/Y/U/S)
  216. are used to specify source and destination addresses. Block size to be 
  217. transfered is specified by the W register. 
  218. Four style is provided:
  219.     TFR r0+,r1+  (transfered in address is increasing order),
  220.     TFR r0-,r1-  (transfered in address is decreasing order),
  221.     TFR r0+,r1   (poured into the same address, I/O port for instance),
  222.     TFR r0,r1+   (read from the same address, I/O port for instance).
  223. I tried this instructions but I do not remember exactly.
  224. Operand registers are pointers of source/destination addresses (,maybe).
  225. Please try and find the behavior of these instructions.
  226.  
  227. 5.4 Multiplication And Division
  228. The 6309 has MULD instruction which performs a 16bit x 16bit multipli-
  229. cation. We can use various addressing modes (immediate, direct, indexed,
  230. extend)  The result is stored in the Q register.
  231.   
  232.   Division instructions are also provided.  The 6309 has two division
  233. instructions: 16bit / 8bit, 32bit / 16bit divisions. 
  234. Various addressing modes (immediate, direct, indexed, extend) can be 
  235. used.  
  236. (Note:I forget where its result is stored.  I tried these instructions. 
  237. I remember that modulo is also computed. The quotient and the modulo 
  238. are stored D and W resp., maybe. I'm not sure, sorry.)
  239.  
  240. 5.5 Bit Manipulation / Bit Transfer
  241. The 6309 provides AIM, OIM, EIM, TIM instructions which are compatible 
  242. with instructions of the Hitachi 6301 CPU.  Read the manual of the 6301
  243. to understand thses instructions.
  244.  
  245. Instructions called BAND, BOR, BEOR, BIAND, BIOR, BIEOR, LDBT, STBT
  246. are provided.  Behavior of thses instructions is that a logical
  247. operation is performed for n-th bit of a data in a memory (only direct
  248. mode is allowed) and m-th bit of a register, then the result is stored 
  249. in the register. The format of the object is :
  250.    $11, x, (post byte), (operand).
  251. The say that the post byte takes strange format.  I do not understand
  252. these instructions. Sorry, please try.  
  253.  
  254. 5.6 Misc
  255.  
  256. To change modes ofthe 6309, we have to set the 0th bit of the MD
  257. register.  To do this, the LDMD instruction is provided:
  258.     LDMD #n     (where #n is a immediate n bit data)
  259. When trap is caused, it is necessary to examine the reason of the 
  260. trap. The BITMD instruction can be used for this purpose:
  261.     BITMD #n    (where #n is a immediate n bit data)
  262. The contents of the MD register and #n is ANDed, and changes the CC 
  263. register (,maybe, I do not remember exactly).
  264. Once this instruction is executed, the 6th and the 7th bit of the 
  265. MD register is CLEARED.  Therefore, we can't examine the MD register.
  266.  
  267. Pushing and poping the W registers on/from stack:
  268.     PSHSW     (Push the W register on the system stack),
  269.     PULSW     (Pop the W register from the system stack),
  270.     PSHUW     (Push the W register on the user stack),
  271.     PULUW     (Pop the W register from the user stack).
  272.  
  273.  
  274.  
  275. 6. ** INSTRUCTION TABLES **
  276.  
  277. In this section, only additional instructions of the 6309 are
  278. shown.  
  279.  
  280. How to read the following table :
  281.   The first column :    +    ... New instruction of 6309
  282.                      (blank) ... a instruction of 6089/6309,
  283.   --Op--    :  Operational code,
  284.   --Mnem--  :  Mnemonic,
  285.   --Mode--  :  Addressing mode,
  286.   --Cyc--   :  Execution Cycles (Parenthesized value is the value
  287.                in the native mode),
  288.   --Len--   :  Length of the instruction,
  289.  
  290. 6.1 Instructions without pre-byte
  291.  
  292.   --Op--  --Mnem--  --Mode--    --Cyc--  --Len --
  293.    $00     NEG       DIRECT      6 (5)      2
  294. +  $01     OIM       DIRECT      6          3
  295. +  $02     AIM       DIRECT      6          3
  296.    $03     COM       DIRECT      6 (5)      2
  297.    $04     LSR       DIRECT      6 (5)      2
  298. +  $05     EIM       DIRECT      6          3
  299.    $06     ROR       DIRECT      6 (5)      2
  300.    $07     ASR       DIRECT      6 (5)      2
  301.    $08     ASL/LSL   DIRECT      6 (5)      2
  302.    $09     ROL       DIRECT      6 (5)      2
  303.    $0A     DEC       DIRECT      6 (5)      2
  304. +  $0B     TIM       DIRECT      6          3
  305.    $0C     INC       DIRECT      6 (5)      2
  306.    $0D     TST       DIRECT      6 (4)      2
  307.    $0E     JMP       DIRECT      3 (2)      2
  308.    $0F     CLR       DIRECT      6 (5)      2
  309.  
  310.    $10     (PREBYTE)
  311.    $11     (PREBYTE)
  312.    $12     NOP       IMP         2 (1)      1
  313.    $13     SYNC      IMP         2 (1)      1
  314. +  $14     SEXW      IMP         4          1
  315.    $16     LBRA      REL         5 (4)      3
  316.    $17     LBSR      REL         9 (7)      3
  317.    $19     DAA       IMP         2 (1)      1
  318.    $1A     ORCC      IMMED       3 (2)      2
  319.    $1C     ANDCC     IMMED       3          2
  320.    $1D     SEX       IMP         2 (1)      1
  321.    $1E     EXG       REGIST      8 (5)      2
  322.    $1F     TFR       REGIST      6 (4)      2
  323.   
  324.    $20     BRA       REL         3          2
  325.    $21     BRN       REL         3          2
  326.    $22     BHI       REL         3          2
  327.    $23     BLS       REL         3          2
  328.    $24     BHS/BCC   REL         3          2
  329.    $25     BLO/BCS   REL         3          2
  330.    $26     BNE       REL         3          2
  331.    $27     BEQ       REL         3          2
  332.    $28     BVC       REL         3          2
  333.    $29     BVS       REL         3          2 
  334.    $2A     BPL       REL         3          2
  335.    $2B     BMI       REL         3          2
  336.    $2C     BGE       REL         3          2
  337.    $2D     BLT       REL         3          2
  338.    $2E     BGT       REL         3          2
  339.    $2F     BLE       REL         3          2
  340.  
  341.    $30     LEAX      REL         4+         2+
  342.    $31     LEAY      REL         4+         2+
  343.    $32     LEAS      REL         4+         2+
  344.    $33     LEAU      REL         4+         2+
  345.    $34     PSHS      REGIST      5+ (4+)    2
  346.    $35     PULS      REGIST      5+ (4+)    2
  347.    $36     PSHU      REGIST      5+ (4+)    2
  348.    $37     PULU      REGIST      5+ (4+)    2
  349.    $39     RTS                   5 (4)      1
  350.    $3A     ABX       IMP         3 (1)      1
  351.    $3B     RTI       IMP         6/15 (17)  1
  352.    $3C     CWAI      IMP         22 (20)    2
  353.    $3D     MUL       IMP         11 (10)    1
  354.    $3F     SWI       IMP         19 (21)    1
  355.   
  356.    $40     NEGA      IMP         2 (1)      1
  357.    $43     COMA      IMP         2 (1)      1
  358.    $44     LSRA      IMP         2 (1)      1
  359.    $46     RORA      IMP         2 (1)      1
  360.    $47     ASRA      IMP         2 (1)      1
  361.    $48     ASLA/LSLA IMP         2 (1)      1
  362.    $49     ROLA      IMP         2 (1)      1
  363.    $4A     DECA      IMP         2 (1)      1
  364.    $4C     INCA      IMP         2 (1)      1
  365.    $4D     TSTA      IMP         2 (1)      1
  366.    $4F     CLRA      IMP         2 (1)      1
  367.  
  368.    $50     NEGB      IM P        2 (1)      1
  369.    $53     COMB      IMP         2 (1)      1
  370.    $54     LSRB      IMP         2 (1)      1
  371.    $56     RORB      IMP         2 (1)      1
  372.    $57     ASRB      IMP         2 (1)      1
  373.    $58     ASLB/LSLB IMP         2 (1)      1
  374.    $59     ROLB      IMP         2 (1)      1
  375.    $5A     ECB       IMP         2 (1)      1
  376.    $5C     NCB       IMP         2 (1)      1
  377.    $5D     STB       IMP         2 (1)      1
  378.    $5F     LRB       IMP         2 (1)      1
  379.  
  380.    $60     NEG       INDEXD      6+         2+
  381. +  $61     OIM       INDEXD      7+         3+
  382. +  $62     AIM       INDEXD      7          3+
  383.    $63     COM       INDEXD      6+         2+
  384.    $64     LSR       INDEXD      6+         2+
  385. +  $65     EIM       INDEXD      7+         3+
  386.    $66     ROR       INDEXD      6+         2+
  387.    $67     ASR       INDEXD      6+         2+
  388.    $68     ASL/LSL   INDEXD      6+         2+
  389.    $69     ROL       INDEXD      6+         2+
  390.    $6A     DEC       INDEXD      6+         2+
  391. +  $6B     TIM       INDEXD      7+         3+
  392.    $6C     INC       INDEXD      6+         2+
  393.    $6D     TST       INDEXD      6+ (5+)    2+
  394.    $6E     JMP       INDEXD      3+         2+
  395.    $6F     CLR       INDEXD      6+         2+
  396.  
  397.    $70     NEG       EXTEND      7 (6)      3
  398. +  $71     OIM       EXTEND      7          4
  399. +  $72     AIM       EXTEND      7          4
  400.    $73     COM       EXTEND      7 (6)      3
  401.    $74     LSR       EXTEND      7 (6)      3
  402. +  $75     EIM       EXTEND      7          4
  403.    $76     ROR       EXTEND      7 (6)      3
  404.    $77     ASR       EXTEND      7 (6)      3
  405.    $78     ASL/LSL   EXTEND      7 (6)      3
  406.    $79     ROL       EXTEND      7 (6)      3
  407.    $7A     DEC       EXTEND      7 (6)      3
  408. +  $7B     TIM       EXTEND      5          4
  409.    $7C     INC       EXTEND      7 (6)      3
  410.    $7D     TST       EXTEND      7 (5)      3
  411.    $7E     JMP       EXTEND      4 (3)      3
  412.    $7F     CLR       EXTEND      7 (6)      3
  413.  
  414.    $80     SUBA      IMMED       2          2
  415.    $81     CMPA      IMMED       2          2
  416.    $82     SBCA      IMMED       2          2
  417.    $83     SUBD      IMMED       4 (3)      3
  418.    $84     ANDA      IMMED       2          2
  419.    $85     BITA      IMMED       2          2
  420.    $86     LDA       IMMED       2          2
  421.    $88     EORA      IMMED       2          2
  422.    $89     ADCA      IMMED       2          2
  423.    $8A     ORA       IMMED       2          2
  424.    $8B     ADDA      IMMED       2          2
  425.    $8C     CMPX      IMMED       4 (3)      3
  426.    $8D     BSR       IMMED       7 (6)      2
  427.    $8E     LDX       IMMED       3          3
  428.  
  429.    $90     SUBA      DIRECT      4 (3)      2
  430.    $91     CMPA      DIRECT      4 (3)      2
  431.    $92     SBCA      DIRECT      4 (3)      2
  432.    $93     SUBD      DIRECT      6 (4)      3
  433.    $94     ANDA      DIRECT      4 (3)      2
  434.    $95     BITA      DIRECT      4 (3)      2
  435.    $96     LDA       DIRECT      4 (3)      2
  436.    $97     STA       DIRECT      4 (3)      2
  437.    $98     EORA      DIRECT      4 (3)      2
  438.    $99     ADCA      DIRECT      4 (3)      2
  439.    $9A     ORA       DIRECT      4 (3)      2
  440.    $9B     ADDA      DIRECT      4 (3)      2
  441.    $9C     CMPX      DIRECT      6 (4)      2
  442.    $9D     JSR       DIRECT      7 (6)      2
  443.    $9E     LDX       DIRECT      5 (4)      2
  444.    $9F     STX       DIRECT      5 (4)      2
  445.   
  446.    $A0     SUBA      INDEXD      4+         2+
  447.    $A1     CMPA      INDEXD      4+         2+
  448.    $A2     SBCA      INDEXD      4+         2+
  449.    $A3     SUBD      INDEXD      6+ (5+)    2+
  450.    $A4     ANDA      INDEXD      4+         2+
  451.    $A5     BITA      INDEXD      4+         2+
  452.    $A6     LDA       INDEXD      4+         2+
  453.    $A7     STA       INDEXD      4+         2+
  454.    $A8     EORA      INDEXD      4+         2+
  455.    $A9     ADCA      INDEXD      4+         2+
  456.    $AA     ORA       INDEXD      4+         2+
  457.    $AB     ADDA      INDEXD      4+         2+
  458.    $AC     CMPX      INDEXD      6+ (5+)    2+
  459.    $AD     JSR       INDEXD      7+ (6+)    2+
  460.    $AE     LDX       INDEXD      5+         2+
  461.    $AF     STX       INDEXD      5+         2+
  462.   
  463.    $B0     SUBA      EXTEND      5 (4)      3
  464.    $B1     CMPA      EXTEND      5 (4)      3
  465.    $B2     SBCA      EXTEND      5 (4)      3
  466.    $B3     SUBD      EXTEND      7 (5)      3
  467.    $B4     ANDA      EXTEND      5 (4)      3
  468.    $B5     BITA      EXTEND      5 (4)      3
  469.    $B6     LDA       EXTEND      5 (4)      3
  470.    $B7     STA       EXTEND      5 (4)      3
  471.    $B8     EORA      EXTEND      5 (4)      3
  472.    $B9     ADCA      EXTEND      5 (4)      3
  473.    $BA     ORA       EXTEND      5 (4)      3
  474.    $BB     ADDA      EXTEND      5 (4)      3
  475.    $BC     CMPX      EXTEND      7 (5)      3
  476.    $BD     JSR       EXTEND      8 (7)      3
  477.    $BE     LDX       EXTEND      6 (5)      3
  478.    $BF     STX       EXTEND      6 (5)      3
  479.   
  480.    $C0     SUBB      IMMED       2          2
  481.    $C1     CMPB      IMMED       2          2
  482.    $C2     SBCB      IMMED       2          2
  483.    $C3     ADDD      IMMED       4 (3)      3
  484.    $C4     ANDB      IMMED       2          2
  485.    $C5     BITB      IMMED       2          2
  486.    $C6     LDB       IMMED       2          2
  487.    $C8     EORB      IMMED       2          2
  488.    $C9     ADCB      IMMED       2          2
  489.    $CA     ORB       IMMED       2          2
  490.    $CB     ADDB      IMMED       2          2
  491.    $CC     LDD       IMMED       3          3
  492. +  $CD     LDQ       IMMED       5          5
  493.    $CE     LDU       IMMED       3          3
  494.  
  495.    $D0     SUBB      DIRECT      4 (3)      2
  496.    $D1     CMPB      DIRECT      4 (3)      2
  497.    $D2     SBCB      DIRECT      4 (3)      2
  498.    $D3     ADDD      DIRECT      6 (4)      3
  499.    $D4     ANDB      DIRECT      4 (3)      2
  500.    $D5     BITB      DIRECT      4 (3)      2
  501.    $D6     LDB       DIRECT      4 (3)      2
  502.    $D7     STB       DIRECT      4 (3)      2
  503.    $D8     EORB      DIRECT      4 (3)      2
  504.    $D9     ADCB      DIRECT      4 (3)      2
  505.    $DA     ORB       DIRECT      4 (3)      2
  506.    $DB     ADDB      DIRECT      4 (3)      2
  507.    $DC     LDD       DIRECT      5 (4)      2
  508.    $DD     STD       DIRECT      5 (4)      2
  509.    $DE     LDU       DIRECT      5 (4)      2
  510.    $DF     STU       DIRECT      5 (4)      2
  511.  
  512.    $E0     SUBB      INDEXD      4+         2+
  513.    $E1     CMPB      INDEXD      4+         2+
  514.    $E2     SBCB      INDEXD      4+         2+
  515.    $E3     ADDD      INDEXD      6+ (5+)    2+
  516.    $E4     ANDB      INDEXD      4+         2+
  517.    $E5     BITB      INDEXD      4+         2+
  518.    $E6     LDB       INDEXD      4+         2+
  519.    $E7     STB       INDEXD      4+         2+
  520.    $E8     EORB      INDEXD      4+         2+
  521.    $E9     ADCB      INDEXD      4+         2+
  522.    $EA     ORB       INDEXD      4+         2+
  523.    $EB     ADDB      INDEXD      4+         2+
  524.    $EC     LDD       INDEXD      5+         2+
  525.    $ED     STD       INDEXD      5+         2+
  526.    $EE     LDU       INDEXD      5+         2+
  527.    $EF     STU       INDEXD      5+         2+
  528.  
  529.    $F0     SUBB      EXTEND      5 (4)      3
  530.    $F1     CMPB      EXTEND      5 (4)      3
  531.    $F2     SBCB      EXTEND      5 (4)      3
  532.    $F3     ADDD      EXTEND      7 (5)      3
  533.    $F4     ANDB      EXTEND      5 (4)      3
  534.    $F5     BITB      EXTEND      5 (4)      3
  535.    $F6     LDB       EXTEND      5 (4)      3
  536.    $F7     STB       EXTEND      5 (4)      3
  537.    $F8     EORB      EXTEND      5 (4)      3
  538.    $F9     ADCB      EXTEND      5 (4)      3
  539.    $FA     ORB       EXTEND      5 (4)      3
  540.    $FB     ADDB      EXTEND      5 (4)      3
  541.    $FC     LDD       EXTEND      6 (5)      3
  542.    $FD     STD       EXTEND      6 (5)      3
  543.    $FE     LDU       EXTEND      6 (5)      3
  544.    $FF     STU       EXTEND      6 (5)      3
  545.  
  546.  
  547.  
  548. 6.2 Instructions whose pre-byte is $10
  549.  
  550.   --Op--  --Mnem--  --Mode--    --Cyc--  --Len --
  551.    $21     LBRN      REL         5          4
  552.    $22     LBHI      REL         5/6 (5)    4
  553.    $23     LBLS      REL         5/6 (5)    4
  554.    $24     LBHS/LBCC REL         5/6 (5)    4
  555.    $25     LBLO/LBCS REL         5/6 (5)    4
  556.    $26     LBNE      REL         5/6 (5)    4
  557.    $27     LBEQ      REL         5/6 (5)    4
  558.    $28     LBVC      REL         5/6 (5)    4
  559.    $29     LBVS      REL         5/6 (5)    4
  560.    $2A     LBPL      REL         5/6 (5)    4
  561.    $2B     LBMI      REL         5/6 (5)    4
  562.    $2C     LBGE      REL         5/6 (5)    4
  563.    $2D     LBLT      REL         5/6 (5)    4
  564.    $2E     LBGT      REL         5/6 (5)    4
  565.    $2F     LBLE      REL         5/6 (5)    4
  566.  
  567. +  $30     ADDR      REGIST      4          3
  568. +  $31     ADCR      REGIST      4          3
  569. +  $32     SUBR      REGIST      4          3
  570. +  $33     SBCR      REGIST      4          3
  571. +  $34     ANDR      REGIST      4          3
  572. +  $35     ORR       REGIST      4          3
  573. +  $36     EORR      REGIST      4          3
  574. +  $37     CMPR      REGIST      4          3
  575. +  $38     PSHSW     IMP         6          2
  576. +  $39     PULSW     IMP         6          2
  577. +  $3A     PSHUW     IMP         6          2
  578. +  $3B     PULUW     IMP         6          2
  579.    $3F     SWI2      IMP         20 (22)    2
  580.  
  581. +  $40     NEGD      IMP         3 (2)      2
  582. +  $43     COMD      IMP         3 (2)      2
  583. +  $44     LSRD      IMP         3 (2)      2
  584. +  $46     RORD      IMP         3 (2)      2
  585. +  $47     ASRD      IMP         3 (2)      2
  586. +  $48     ASLD      IMP         3 (2)      2
  587. +  $49     ROLD      IMP         3 (2)      2
  588. +  $4A     DECD      IMP         3 (2)      2
  589. +  $4C     INCD      IMP         3 (2)      2
  590. +  $4D     TSTD      IMP         3 (2)      2
  591. +  $4F     CLRD      IMP         3 (2)      2
  592.  
  593. +  $53     COMW      IMP         3 (2)      2
  594. +  $54     LSRW      IMP         3 (2)      2
  595. +  $56     RORW      IMP         3 (2)      2
  596. +  $59     ROLW      IMP         3 (2)      2
  597. +  $5A     DECW      IMP         3 (2)      2
  598. +  $5C     INCW      IMP         3 (2)      2
  599. +  $5D     TSTW      IMP         3 (2)      2
  600. +  $5F     CLRW      IMP         3 (2)      2
  601.  
  602. +  $80     SUBW      IMMED       5 (4)      4
  603. +  $81     CMPW      IMMED       5 (4)      4
  604. +  $82     SBCD      IMMED       5 (4)      4
  605.    $83     CMPD      IMMED       5 (4)      4
  606. +  $84     ANDD      IMMED       5 (4)      4
  607. +  $85     BITD      IMMED       5 (4)      4
  608. +  $86     LDW       IMMED       4          4
  609. +  $88     EORD      IMMED       5 (4)      4
  610. +  $89     ADCD      IMMED       5 (4)      4
  611. +  $8A     ORD       IMMED       5 (4)      4
  612. +  $8B     ADDW      IMMED       5 (4)      4
  613.    $8C     CMPY      IMMED       5 (4)      4
  614.    $8E     LDY       IMMED       4          4
  615.  
  616. +  $90     SUBW      DIRECT      7 (5)      3
  617. +  $91     CMPW      DIRECT      7 (5)      3
  618. +  $92     SBCD      DIRECT      7 (5)      3
  619.    $93     CMPD      DIRECT      7 (5)      3
  620. +  $94     ANDD      DIRECT      7 (5)      3
  621. +  $95     BITD      DIRECT      7 (5)      3
  622. +  $96     LDW       DIRECT      6 (5)      3
  623. +  $97     STW       DIRECT      6 (5)      3
  624. +  $98     EORD      DIRECT      7 (5)      3
  625. +  $99     ADCD      DIRECT      7 (5)      3
  626. +  $9A     ORD       DIRECT      7 (5)      3
  627. +  $9B     ADDW      DIRECT      7 (5)      3
  628.    $9C     CMPY      DIRECT      7 (5)      3
  629.    $9E     LDY       DIRECT      6 (5)      3
  630.    $9F     STY       DIRECT      6 (5)      3
  631.  
  632. +  $A0     SUBW      INDEXD      7+ (6+)    3+
  633. +  $A1     CMPW      INDEXD      7+ (6+)    3+
  634. +  $A2     SBCD      INDEXD      7+ (6+)    3+
  635.    $A3     CMPD      INDEXD      7+ (6+)    3+
  636. +  $A4     ANDD      INDEXD      7+ (6+)    3+
  637. +  $A5     BITD      INDEXD      7+ (6+)    3+
  638. +  $A6     LDW       INDEXD      6+         3+
  639. +  $A7     STW       INDEXD      6+         3+
  640. +  $A8     EORD      INDEXD      7+ (6+)    3+
  641. +  $A9     ADCD      INDEXD      7+ (6+)    3+
  642. +  $AA     ORD       INDEXD      7+ (6+)    3+
  643. +  $AB     ADDW      INDEXD      7+ (6+)    3+
  644.    $AC     CMPY      INDEXD      7+ (6+)    3+
  645.    $AE     LDY       INDEXD      6+         3+
  646.    $AF     STY       INDEXD      6+         3+
  647.  
  648. +  $B0     SUBW      EXTEND      8 (6)      4
  649. +  $B1     CMPW      EXTEND      8 (6)      4
  650. +  $B2     SBCD      EXTEND      8 (6)      4
  651.    $B3     CMPD      EXTEND      8 (6)      4
  652. +  $B4     ANDD      EXTEND      8 (6)      4
  653. +  $B5     BITD      EXTEND      8 (6)      4
  654. +  $B6     LDW       EXTEND      7 (6)      4
  655. +  $B7     STW       EXTEND      7 (6)      4
  656. +  $B8     EORD      EXTEND      8 (6)      4
  657. +  $B9     ADCD      EXTEND      8 (6)      4
  658. +  $BA     ORD       EXTEND      8 (6)      4
  659. +  $BB     ADDW      EXTEND      8 (6)      4
  660.    $BC     CMPY      EXTEND      8 (6)      4
  661.    $BE     LDY       EXTEND      7 (6)      4
  662.    $BF     STY       EXTEND      7 (6)      4
  663.  
  664.    $CE     LDS       IMMED       4          4
  665.  
  666. +  $DC     LDQ       DIRECT      8 (7)      3
  667. +  $DD     STQ       DIRECT      8 (7)      3
  668.    $DE     LDS       DIRECT      6 (5)      3
  669.    $DF     STS       DIRECT      6 (5)      3
  670.  
  671. +  $EC     LDQ       INDEXD      8+         3+
  672. +  $ED     STQ       INDEXD      8+         3+
  673.    $EE     LDS       INDEXD      6+         3+
  674.    $EF     STS       INDEXD      6+         3+
  675.  
  676. +  $FC     LDQ       EXTEND      9 (8)      4
  677. +  $FD     STQ       EXTEND      9 (8)      4
  678.    $FE     LDS       EXTEND      7 (6)      4
  679.    $FF     STS       EXTEND      7 (6)      4
  680.  
  681. 6.3 Instructions whose pre-byte is $11
  682.  
  683.   --Op--  --Mnem--  --Mode--    --Cyc--  --Len --
  684. +  $30     BAND                 7 (6)       4
  685. +  $31     BIAND                7 (6)       4
  686. +  $32     BOR                  7 (6)       4
  687. +  $33     BIOR                 7 (6)       4
  688. +  $34     NEOR                 7 (6)       4
  689. +  $35     BIEOR                7 (6)       4
  690. +  $36     LDBT                 7 (6)       4
  691. +  $37     STBT                 8 (7)       4
  692. +  $38     TFR (r1+,r2+)        6+3n        3
  693. +  $39     TFR (r1-,r2-)        6+3n        3
  694. +  $3A     TFR (r1+,r)          6+3n        3
  695. +  $3B     TFR (r1,r2+)         6+3n        3
  696. +  $3C     BITMD    IMMED       4           3
  697. +  $3D     LDMD     IMMED       5           3
  698.    $3F     SWI2     IMP         20 (22)     2
  699.  
  700. +  $43     COME      IMP        3 (2)       2
  701. +  $4A     DECE      IMP        3 (2)       2
  702. +  $4C     INCE      IMP        3 (2)       2
  703. +  $4D     TSTE      IMP        3 (2)       2
  704. +  $4F     CLRE      IMP        3 (2)       2
  705.  
  706. +  $53     COMF      IMP        3 (2)       2
  707. +  $5A     DECF      IMP        3 (2)       2
  708. +  $5C     INCF      IMP        3 (2)       2
  709. +  $5D     TSTF      IMP        3 (2)       2
  710. +  $5F     CLRF      IMP        3 (2)       2
  711.  
  712. +  $80     SUBE      IMMED      3           3
  713. +  $81     CMPE      IMMED      3           3
  714.    $83     CMPU      IMMED      5 (4)       4
  715. +  $86     LDE       IMMED      3           3
  716. +  $8B     ADDE      IMMED      3           3
  717.    $8C     CMPS      IMMED      5 (4)       4
  718. +  $8D     DIVD      IMMED      25          3
  719. +  $8E     DIVQ      IMMED      34          4
  720. +  $8F     MULD      IMMED      28          4
  721.  
  722. +  $90     SUBE      DIRECT     5 (4)       3
  723. +  $91     CMPE      DIRECT     5 (4)       3
  724.    $93     CMPU      DIRECT     7 (5)       3
  725. +  $96     LDE       DIRECT     5 (4)       3
  726. +  $97     STE       DIRECT     5 (4)       3
  727. +  $9B     ADDE      DIRECT     5 (4)       3
  728.    $9C     CMPS      DIRECT     7 (5)       3
  729. +  $9D     DIVD      DIRECT     27 (26)     3
  730. +  $9E     DIVQ      DIRECT     36 (35)     3
  731. +  $9F     MULD      DIRECT     30 (29)     3
  732.  
  733. +  $A0     SUBE      INDEXD     5+          3+
  734. +  $A1     CMPE      INDEXD     5+          3+
  735.    $A3     CMPU      INDEXD     7+ (6+)     3+
  736. +  $A6     LDE       INDEXD     5+          3+
  737. +  $A7     STE       INDEXD     5+          3+
  738. +  $AB     ADDE      INDEXD     5+          3+
  739.    $AC     CMPS      INDEXD     7+ (6+)     3+
  740. +  $AD     DIVD      INDEXD     27+         3+
  741. +  $AE     DIVQ      INDEXD     36+         3+
  742. +  $AF     MULD      INDEXD     30+         3+
  743.  
  744. +  $B0     SUBE      EXTEND     6 (5)       4
  745. +  $B1     CMPE      EXTEND     6 (5)       4
  746.    $B3     CMPU      EXTEND     8 (6)       4
  747. +  $B6     LDE       EXTEND     6 (5)       4
  748. +  $B7     STE       EXTEND     6 (5)       4
  749. +  $BB     ADDE      EXTEND     6 (5)       4
  750.    $BC     CMPS      EXTEND     8 (6)       4
  751. +  $BD     DIVD      EXTEND     28 (27)     4
  752. +  $BE     DIVQ      EXTEND     37 (36)     4
  753. +  $BF     MULD      EXTEND     31 (30)     4
  754.  
  755. +  $C0     SUBF      IMMED      3           3
  756. +  $C1     CMPF      IMMED      3           3
  757. +  $C6     LDF       IMMED      3           3
  758. +  $CB     ADDF      IMMED      3           3
  759.  
  760. +  $D0     SUBF      DIRECT     5 (4)       3
  761. +  $D1     CMPF      DIRECT     5 (4)       3
  762. +  $D6     LDF       DIRECT     5 (4)       3
  763. +  $D7     STF       DIRECT     5 (4)       3
  764. +  $DB     ADDF      DIRECT     5 (4)       3
  765.  
  766. +  $E0     SUBF      INDEXD     5+          3+
  767. +  $E1     CMPF      INDEXD     5+          3+
  768. +  $E6     LDF       INDEXD     5+          3+
  769. +  $E7     STF       INDEXD     5+          3+
  770. +  $EB     ADDF      INDEXD     5+          3+
  771.  
  772. +  $F0     SUBF      EXTEND     6 (5)       4
  773. +  $F1     CMPF      EXTEND     6 (5)       4
  774. +  $F6     LDF       EXTEND     6 (5)       4
  775. +  $F7     STF       EXTEND     6 (5)       4
  776. +  $FB     ADDF      EXTEND     6 (5)       4
  777.  
  778. <EOF>
  779.  
  780.   ===*===*===*===*===*===*===*===*===*===*===*===*===*===*===*===
  781.  
  782. --
  783. Hirotsugu Kakugawa   
  784. Computer Systems Lab., Information Engineering Course,
  785. Graduate School of Engineering, Hiroshima Univ., Japan
  786.  
  787. --
  788. Tim Morris
  789.  
  790.