/[gcl]/gcl/binutils/include/opcode/m68hc11.h
ViewVC logotype

Diff of /gcl/binutils/include/opcode/m68hc11.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by camm, Fri Aug 9 05:36:51 2002 UTC revision 1.1.1.1.20.1 by camm, Fri Sep 30 02:10:25 2005 UTC
# Line 1  Line 1 
1  /* m68hc11.h -- Header file for Motorola 68HC11 & 68HC12 opcode table  /* m68hc11.h -- Header file for Motorola 68HC11 & 68HC12 opcode table
2     Copyright 1999, 2000 Free Software Foundation, Inc.     Copyright 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
3     Written by Stephane Carrez (stcarrez@worldnet.fr)     Written by Stephane Carrez (stcarrez@nerim.fr)
4    
5  This file is part of GDB, GAS, and the GNU binutils.  This file is part of GDB, GAS, and the GNU binutils.
6    
# Line 191  Software Foundation, 59 Temple Place - S Line 191  Software Foundation, 59 Temple Place - S
191  /* Flags of the SPSR register.  */  /* Flags of the SPSR register.  */
192  #define M6811_SPIF      0x80    /* SPI Transfer Complete flag */  #define M6811_SPIF      0x80    /* SPI Transfer Complete flag */
193  #define M6811_WCOL      0x40    /* Write Collision */  #define M6811_WCOL      0x40    /* Write Collision */
194  #define M6811_MODF      0x20    /* Mode Fault */  #define M6811_MODF      0x10    /* Mode Fault */
195    
196  /* Flags of the ADCTL register.  */  /* Flags of the ADCTL register.  */
197  #define M6811_CCF       0x80    /* Conversions Complete Flag */  #define M6811_CCF       0x80    /* Conversions Complete Flag */
# Line 212  Software Foundation, 59 Temple Place - S Line 212  Software Foundation, 59 Temple Place - S
212  /* Flags of the OC1M register.  */  /* Flags of the OC1M register.  */
213  #define M6811_OC1M7     0x80    /* Output Compare 7 */  #define M6811_OC1M7     0x80    /* Output Compare 7 */
214  #define M6811_OC1M6     0x40    /*                6 */  #define M6811_OC1M6     0x40    /*                6 */
215  #define M6811_OC1M5     0x40    /*                5 */  #define M6811_OC1M5     0x20    /*                5 */
216  #define M6811_OC1M4     0x40    /*                4 */  #define M6811_OC1M4     0x10    /*                4 */
217  #define M6811_OC1M3     0x08    /*                3 */  #define M6811_OC1M3     0x08    /*                3 */
218    
219  /* Flags of the OC1D register.  */  /* Flags of the OC1D register.  */
# Line 341  Software Foundation, 59 Temple Place - S Line 341  Software Foundation, 59 Temple Place - S
341  #define M6812_OP_IDX_2        0x0800   /* N,r N:16-bits */  #define M6812_OP_IDX_2        0x0800   /* N,r N:16-bits */
342  #define M6812_OP_D_IDX        0x1000   /* Indirect indexed: [D,r] */  #define M6812_OP_D_IDX        0x1000   /* Indirect indexed: [D,r] */
343  #define M6812_OP_D_IDX_2      0x2000   /* [N,r] N:16-bits */  #define M6812_OP_D_IDX_2      0x2000   /* [N,r] N:16-bits */
344  #define M6811_OP_MASK         0x0FFFF  #define M6812_OP_PAGE         0x4000   /* Page number */
345    #define M6811_OP_MASK         0x07FFF
346    #define M6811_OP_BRANCH       0x00008000 /* Branch, jsr, call */
347  #define M6811_OP_BITMASK      0x00010000 /* Bitmask:             #<val-8>    */  #define M6811_OP_BITMASK      0x00010000 /* Bitmask:             #<val-8>    */
348  #define M6811_OP_JUMP_REL     0x00020000 /* Pc-Relative:         <val-8>     */  #define M6811_OP_JUMP_REL     0x00020000 /* Pc-Relative:         <val-8>     */
349  #define M6812_OP_JUMP_REL16   0x00040000 /* Pc-relative:         <val-16>    */  #define M6812_OP_JUMP_REL16   0x00040000 /* Pc-relative:         <val-16>    */
# Line 376  Software Foundation, 59 Temple Place - S Line 378  Software Foundation, 59 Temple Place - S
378  #define M6811_OP_HIGH_ADDR    0x01000000 /* Used internally by gas.  */  #define M6811_OP_HIGH_ADDR    0x01000000 /* Used internally by gas.  */
379  #define M6811_OP_LOW_ADDR     0x02000000  #define M6811_OP_LOW_ADDR     0x02000000
380    
381    #define M68HC12_BANK_VIRT 0x010000
382    #define M68HC12_BANK_MASK 0x00003fff
383    #define M68HC12_BANK_BASE 0x00008000
384    #define M68HC12_BANK_SHIFT 14
385    #define M68HC12_BANK_PAGE_MASK 0x0ff
386    
387    
388  /* CPU identification.  */  /* CPU identification.  */
389  #define cpu6811 0x01  #define cpu6811 0x01
390  #define cpu6812 0x02  #define cpu6812 0x02
391    #define cpu6812s 0x04
392    
393  /* The opcode table is an array of struct m68hc11_opcode.  */  /* The opcode table is an array of struct m68hc11_opcode.  */
394  struct m68hc11_opcode {  struct m68hc11_opcode {
# Line 415  extern const struct m68hc12_opcode_alias Line 425  extern const struct m68hc12_opcode_alias
425  extern const int m68hc12_num_alias;  extern const int m68hc12_num_alias;
426    
427  #endif /* _OPCODE_M68HC11_H */  #endif /* _OPCODE_M68HC11_H */
   

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.20.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26