HD6309_INLINE void illegal( void );
HD6309_INLINE void neg_di( void );
HD6309_INLINE void oim_di( void );
HD6309_INLINE void aim_di( void );
HD6309_INLINE void com_di( void );
HD6309_INLINE void lsr_di( void );
HD6309_INLINE void eim_di( void );
HD6309_INLINE void ror_di( void );
HD6309_INLINE void asr_di( void );
HD6309_INLINE void asl_di( void );
HD6309_INLINE void rol_di( void );
HD6309_INLINE void dec_di( void );
HD6309_INLINE void tim_di( void );
HD6309_INLINE void inc_di( void );
HD6309_INLINE void tst_di( void );
HD6309_INLINE void jmp_di( void );
HD6309_INLINE void clr_di( void );
HD6309_INLINE void nop( void );
HD6309_INLINE void sync( void );
HD6309_INLINE void sexw( void );
HD6309_INLINE void lbra( void );
HD6309_INLINE void lbsr( void );
HD6309_INLINE void daa( void );
HD6309_INLINE void daa( void );
HD6309_INLINE void orcc( void );
HD6309_INLINE void andcc( void );
HD6309_INLINE void sex( void );
HD6309_INLINE void exg( void );
HD6309_INLINE void tfr( void );
HD6309_INLINE void bra( void );
HD6309_INLINE void brn( void );
HD6309_INLINE void lbrn( void );
HD6309_INLINE void bhi( void );
HD6309_INLINE void lbhi( void );
HD6309_INLINE void bls( void );
HD6309_INLINE void lbls( void );
HD6309_INLINE void bcc( void );
HD6309_INLINE void lbcc( void );
HD6309_INLINE void bcs( void );
HD6309_INLINE void lbcs( void );
HD6309_INLINE void bne( void );
HD6309_INLINE void lbne( void );
HD6309_INLINE void beq( void );
HD6309_INLINE void lbeq( void );
HD6309_INLINE void bvc( void );
HD6309_INLINE void lbvc( void );
HD6309_INLINE void bvs( void );
HD6309_INLINE void lbvs( void );
HD6309_INLINE void bpl( void );
HD6309_INLINE void lbpl( void );
HD6309_INLINE void bmi( void );
HD6309_INLINE void lbmi( void );
HD6309_INLINE void bge( void );
HD6309_INLINE void lbge( void );
HD6309_INLINE void blt( void );
HD6309_INLINE void lblt( void );
HD6309_INLINE void bgt( void );
HD6309_INLINE void lbgt( void );
HD6309_INLINE void ble( void );
HD6309_INLINE void lble( void );
HD6309_INLINE void addr_r( void );
HD6309_INLINE void adcr( void );
HD6309_INLINE void subr( void );
HD6309_INLINE void sbcr( void );
HD6309_INLINE void andr( void );
HD6309_INLINE void orr( void );
HD6309_INLINE void eorr( void );
HD6309_INLINE void cmpr( void );
HD6309_INLINE void tfmpp( void );
HD6309_INLINE void tfmmm( void );
HD6309_INLINE void tfmpc( void );
HD6309_INLINE void tfmcp( void );
HD6309_INLINE void bitmd_im( void );
HD6309_INLINE void leax( void );
HD6309_INLINE void leay( void );
HD6309_INLINE void leas( void );
HD6309_INLINE void leau( void );
HD6309_INLINE void pshs( void );
HD6309_INLINE void ldmd_im( void );
HD6309_INLINE void pshsw( void );
HD6309_INLINE void pshuw( void );
HD6309_INLINE void puls( void );
HD6309_INLINE void pulsw( void );
HD6309_INLINE void puluw( void );
HD6309_INLINE void pshu( void );
HD6309_INLINE void pulu( void );
HD6309_INLINE void rts( void );
HD6309_INLINE void abx( void );
HD6309_INLINE void rti( void );
HD6309_INLINE void cwai( void );
HD6309_INLINE void bitd_di( void );
HD6309_INLINE void bitd_ix( void );
HD6309_INLINE void bitd_ex( void );
HD6309_INLINE void mul( void );
HD6309_INLINE void swi( void );
HD6309_INLINE void band( void );
HD6309_INLINE void bitd_im( void );
HD6309_INLINE void biand( void );
HD6309_INLINE void bor( void );
HD6309_INLINE void bior( void );
HD6309_INLINE void beor( void );
HD6309_INLINE void bieor( void );
HD6309_INLINE void ldbt( void );
HD6309_INLINE void stbt( void );
HD6309_INLINE void swi2( void );
HD6309_INLINE void swi3( void );
HD6309_INLINE void nega( void );
HD6309_INLINE void coma( void );
HD6309_INLINE void lsra( void );
HD6309_INLINE void rora( void );
HD6309_INLINE void asra( void );
HD6309_INLINE void asla( void );
HD6309_INLINE void rola( void );
HD6309_INLINE void deca( void );
HD6309_INLINE void inca( void );
HD6309_INLINE void tsta( void );
HD6309_INLINE void clra( void );
HD6309_INLINE void negb( void );
HD6309_INLINE void negd( void );
HD6309_INLINE void comb( void );
HD6309_INLINE void come( void );
HD6309_INLINE void comf( void );
HD6309_INLINE void comd( void );
HD6309_INLINE void comw( void );
HD6309_INLINE void lsrb( void );
HD6309_INLINE void lsrd( void );
HD6309_INLINE void lsrw( void );
HD6309_INLINE void rorb( void );
HD6309_INLINE void rord( void );
HD6309_INLINE void rorw( void );
HD6309_INLINE void asrb( void );
HD6309_INLINE void asrd( void );
HD6309_INLINE void aslb( void );
HD6309_INLINE void asld( void );
HD6309_INLINE void rolb( void );
HD6309_INLINE void rold( void );
HD6309_INLINE void rolw( void );
HD6309_INLINE void decb( void );
HD6309_INLINE void dece( void );
HD6309_INLINE void decf( void );
HD6309_INLINE void decd( void );
HD6309_INLINE void decw( void );
HD6309_INLINE void incb( void );
HD6309_INLINE void ince( void );
HD6309_INLINE void incf( void );
HD6309_INLINE void incd( void );
HD6309_INLINE void incw( void );
HD6309_INLINE void tstb( void );
HD6309_INLINE void tstd( void );
HD6309_INLINE void tstw( void );
HD6309_INLINE void tste( void );
HD6309_INLINE void tstf( void );
HD6309_INLINE void clrb( void );
HD6309_INLINE void clrd( void );
HD6309_INLINE void clre( void );
HD6309_INLINE void clrf( void );
HD6309_INLINE void clrw( void );
HD6309_INLINE void neg_ix( void );
HD6309_INLINE void oim_ix( void );
HD6309_INLINE void aim_ix( void );
HD6309_INLINE void com_ix( void );
HD6309_INLINE void lsr_ix( void );
HD6309_INLINE void eim_ix( void );
HD6309_INLINE void ror_ix( void );
HD6309_INLINE void asr_ix( void );
HD6309_INLINE void asl_ix( void );
HD6309_INLINE void rol_ix( void );
HD6309_INLINE void dec_ix( void );
HD6309_INLINE void tim_ix( void );
HD6309_INLINE void inc_ix( void );
HD6309_INLINE void tst_ix( void );
HD6309_INLINE void jmp_ix( void );
HD6309_INLINE void clr_ix( void );
HD6309_INLINE void neg_ex( void );
HD6309_INLINE void oim_ex( void );
HD6309_INLINE void aim_ex( void );
HD6309_INLINE void com_ex( void );
HD6309_INLINE void lsr_ex( void );
HD6309_INLINE void eim_ex( void );
HD6309_INLINE void ror_ex( void );
HD6309_INLINE void asr_ex( void );
HD6309_INLINE void asl_ex( void );
HD6309_INLINE void rol_ex( void );
HD6309_INLINE void dec_ex( void );
HD6309_INLINE void tim_ex( void );
HD6309_INLINE void inc_ex( void );
HD6309_INLINE void tst_ex( void );
HD6309_INLINE void jmp_ex( void );
HD6309_INLINE void clr_ex( void );
HD6309_INLINE void suba_im( void );
HD6309_INLINE void cmpa_im( void );
HD6309_INLINE void sbca_im( void );
HD6309_INLINE void subd_im( void );
HD6309_INLINE void subw_im( void );
HD6309_INLINE void cmpd_im( void );
HD6309_INLINE void cmpw_im( void );
HD6309_INLINE void cmpu_im( void );
HD6309_INLINE void anda_im( void );
HD6309_INLINE void bita_im( void );
HD6309_INLINE void lda_im( void );
HD6309_INLINE void eora_im( void );
HD6309_INLINE void adca_im( void );
HD6309_INLINE void ora_im( void );
HD6309_INLINE void adda_im( void );
HD6309_INLINE void cmpx_im( void );
HD6309_INLINE void cmpy_im( void );
HD6309_INLINE void cmps_im( void );
HD6309_INLINE void bsr( void );
HD6309_INLINE void ldx_im( void );
HD6309_INLINE void ldq_im( void );
HD6309_INLINE void ldy_im( void );
HD6309_INLINE void suba_di( void );
HD6309_INLINE void cmpa_di( void );
HD6309_INLINE void sbca_di( void );
HD6309_INLINE void subd_di( void );
HD6309_INLINE void subw_di( void );
HD6309_INLINE void cmpd_di( void );
HD6309_INLINE void cmpw_di( void );
HD6309_INLINE void cmpu_di( void );
HD6309_INLINE void anda_di( void );
HD6309_INLINE void bita_di( void );
HD6309_INLINE void lda_di( void );
HD6309_INLINE void sta_di( void );
HD6309_INLINE void eora_di( void );
HD6309_INLINE void adca_di( void );
HD6309_INLINE void ora_di( void );
HD6309_INLINE void adda_di( void );
HD6309_INLINE void cmpx_di( void );
HD6309_INLINE void cmpy_di( void );
HD6309_INLINE void cmps_di( void );
HD6309_INLINE void jsr_di( void );
HD6309_INLINE void ldx_di( void );
HD6309_INLINE void muld_di( void );
HD6309_INLINE void divd_im( void );
HD6309_INLINE void divq_im( void );
HD6309_INLINE void muld_im( void );
HD6309_INLINE void divd_di( void );
HD6309_INLINE void divq_di( void );
HD6309_INLINE void ldq_di( void );
HD6309_INLINE void ldy_di( void );
HD6309_INLINE void stx_di( void );
HD6309_INLINE void stq_di( void );
HD6309_INLINE void sty_di( void );
HD6309_INLINE void suba_ix( void );
HD6309_INLINE void cmpa_ix( void );
HD6309_INLINE void sbca_ix( void );
HD6309_INLINE void subd_ix( void );
HD6309_INLINE void subw_ix( void );
HD6309_INLINE void cmpd_ix( void );
HD6309_INLINE void cmpw_ix( void );
HD6309_INLINE void cmpu_ix( void );
HD6309_INLINE void anda_ix( void );
HD6309_INLINE void bita_ix( void );
HD6309_INLINE void lda_ix( void );
HD6309_INLINE void sta_ix( void );
HD6309_INLINE void eora_ix( void );
HD6309_INLINE void adca_ix( void );
HD6309_INLINE void ora_ix( void );
HD6309_INLINE void adda_ix( void );
HD6309_INLINE void cmpx_ix( void );
HD6309_INLINE void cmpy_ix( void );
HD6309_INLINE void cmps_ix( void );
HD6309_INLINE void jsr_ix( void );
HD6309_INLINE void ldx_ix( void );
HD6309_INLINE void muld_ix( void );
HD6309_INLINE void divd_ix( void );
HD6309_INLINE void divq_ix( void );
HD6309_INLINE void ldq_ix( void );
HD6309_INLINE void ldy_ix( void );
HD6309_INLINE void stx_ix( void );
HD6309_INLINE void stq_ix( void );
HD6309_INLINE void sty_ix( void );
HD6309_INLINE void suba_ex( void );
HD6309_INLINE void cmpa_ex( void );
HD6309_INLINE void sbca_ex( void );
HD6309_INLINE void subd_ex( void );
HD6309_INLINE void subw_ex( void );
HD6309_INLINE void cmpd_ex( void );
HD6309_INLINE void cmpw_ex( void );
HD6309_INLINE void cmpu_ex( void );
HD6309_INLINE void anda_ex( void );
HD6309_INLINE void bita_ex( void );
HD6309_INLINE void lda_ex( void );
HD6309_INLINE void sta_ex( void );
HD6309_INLINE void eora_ex( void );
HD6309_INLINE void adca_ex( void );
HD6309_INLINE void ora_ex( void );
HD6309_INLINE void adda_ex( void );
HD6309_INLINE void cmpx_ex( void );
HD6309_INLINE void cmpy_ex( void );
HD6309_INLINE void cmps_ex( void );
HD6309_INLINE void jsr_ex( void );
HD6309_INLINE void ldx_ex( void );
HD6309_INLINE void muld_ex( void );
HD6309_INLINE void divd_ex( void );
HD6309_INLINE void divq_ex( void );
HD6309_INLINE void ldq_ex( void );
HD6309_INLINE void ldy_ex( void );
HD6309_INLINE void stx_ex( void );
HD6309_INLINE void stq_ex( void );
HD6309_INLINE void sty_ex( void );
HD6309_INLINE void subb_im( void );
HD6309_INLINE void sube_im( void );
HD6309_INLINE void subf_im( void );
HD6309_INLINE void cmpb_im( void );
HD6309_INLINE void cmpe_im( void );
HD6309_INLINE void cmpf_im( void );
HD6309_INLINE void sbcb_im( void );
HD6309_INLINE void sbcd_im( void );
HD6309_INLINE void addd_im( void );
HD6309_INLINE void addw_im( void );
HD6309_INLINE void adde_im( void );
HD6309_INLINE void addf_im( void );
HD6309_INLINE void andb_im( void );
HD6309_INLINE void andd_im( void );
HD6309_INLINE void bitb_im( void );
HD6309_INLINE void ldb_im( void );
HD6309_INLINE void lde_im( void );
HD6309_INLINE void ldf_im( void );
HD6309_INLINE void eorb_im( void );
HD6309_INLINE void eord_im( void );
HD6309_INLINE void adcb_im( void );
HD6309_INLINE void adcd_im( void );
HD6309_INLINE void orb_im( void );
HD6309_INLINE void ord_im( void );
HD6309_INLINE void addb_im( void );
HD6309_INLINE void ldd_im( void );
HD6309_INLINE void ldw_im( void );
HD6309_INLINE void ldu_im( void );
HD6309_INLINE void lds_im( void );
HD6309_INLINE void subb_di( void );
HD6309_INLINE void sube_di( void );
HD6309_INLINE void subf_di( void );
HD6309_INLINE void cmpb_di( void );
HD6309_INLINE void cmpe_di( void );
HD6309_INLINE void cmpf_di( void );
HD6309_INLINE void sbcb_di( void );
HD6309_INLINE void sbcd_di( void );
HD6309_INLINE void addd_di( void );
HD6309_INLINE void addw_di( void );
HD6309_INLINE void adde_di( void );
HD6309_INLINE void addf_di( void );
HD6309_INLINE void andb_di( void );
HD6309_INLINE void andd_di( void );
HD6309_INLINE void bitb_di( void );
HD6309_INLINE void ldb_di( void );
HD6309_INLINE void lde_di( void );
HD6309_INLINE void ldf_di( void );
HD6309_INLINE void stb_di( void );
HD6309_INLINE void ste_di( void );
HD6309_INLINE void stf_di( void );
HD6309_INLINE void eorb_di( void );
HD6309_INLINE void eord_di( void );
HD6309_INLINE void adcb_di( void );
HD6309_INLINE void adcd_di( void );
HD6309_INLINE void orb_di( void );
HD6309_INLINE void ord_di( void );
HD6309_INLINE void addb_di( void );
HD6309_INLINE void ldd_di( void );
HD6309_INLINE void ldw_di( void );
HD6309_INLINE void std_di( void );
HD6309_INLINE void stw_di( void );
HD6309_INLINE void ldu_di( void );
HD6309_INLINE void lds_di( void );
HD6309_INLINE void stu_di( void );
HD6309_INLINE void sts_di( void );
HD6309_INLINE void subb_ix( void );
HD6309_INLINE void sube_ix( void );
HD6309_INLINE void subf_ix( void );
HD6309_INLINE void cmpb_ix( void );
HD6309_INLINE void cmpe_ix( void );
HD6309_INLINE void cmpf_ix( void );
HD6309_INLINE void sbcb_ix( void );
HD6309_INLINE void sbcd_ix( void );
HD6309_INLINE void addd_ix( void );
HD6309_INLINE void addw_ix( void );
HD6309_INLINE void adde_ix( void );
HD6309_INLINE void addf_ix( void );
HD6309_INLINE void andb_ix( void );
HD6309_INLINE void andd_ix( void );
HD6309_INLINE void bitb_ix( void );
HD6309_INLINE void ldb_ix( void );
HD6309_INLINE void lde_ix( void );
HD6309_INLINE void ldf_ix( void );
HD6309_INLINE void stb_ix( void );
HD6309_INLINE void ste_ix( void );
HD6309_INLINE void stf_ix( void );
HD6309_INLINE void eorb_ix( void );
HD6309_INLINE void eord_ix( void );
HD6309_INLINE void adcb_ix( void );
HD6309_INLINE void adcd_ix( void );
HD6309_INLINE void orb_ix( void );
HD6309_INLINE void ord_ix( void );
HD6309_INLINE void addb_ix( void );
HD6309_INLINE void ldd_ix( void );
HD6309_INLINE void ldw_ix( void );
HD6309_INLINE void std_ix( void );
HD6309_INLINE void stw_ix( void );
HD6309_INLINE void ldu_ix( void );
HD6309_INLINE void lds_ix( void );
HD6309_INLINE void stu_ix( void );
HD6309_INLINE void sts_ix( void );
HD6309_INLINE void subb_ex( void );
HD6309_INLINE void sube_ex( void );
HD6309_INLINE void subf_ex( void );
HD6309_INLINE void cmpb_ex( void );
HD6309_INLINE void cmpe_ex( void );
HD6309_INLINE void cmpf_ex( void );
HD6309_INLINE void sbcb_ex( void );
HD6309_INLINE void sbcd_ex( void );
HD6309_INLINE void addd_ex( void );
HD6309_INLINE void addw_ex( void );
HD6309_INLINE void adde_ex( void );
HD6309_INLINE void addf_ex( void );
HD6309_INLINE void andb_ex( void );
HD6309_INLINE void andd_ex( void );
HD6309_INLINE void bitb_ex( void );
HD6309_INLINE void ldb_ex( void );
HD6309_INLINE void lde_ex( void );
HD6309_INLINE void ldf_ex( void );
HD6309_INLINE void stb_ex( void );
HD6309_INLINE void ste_ex( void );
HD6309_INLINE void stf_ex( void );
HD6309_INLINE void eorb_ex( void );
HD6309_INLINE void eord_ex( void );
HD6309_INLINE void adcb_ex( void );
HD6309_INLINE void adcd_ex( void );
HD6309_INLINE void orb_ex( void );
HD6309_INLINE void ord_ex( void );
HD6309_INLINE void addb_ex( void );
HD6309_INLINE void ldd_ex( void );
HD6309_INLINE void ldw_ex( void );
HD6309_INLINE void std_ex( void );
HD6309_INLINE void stw_ex( void );
HD6309_INLINE void ldu_ex( void );
HD6309_INLINE void lds_ex( void );
HD6309_INLINE void stu_ex( void );
HD6309_INLINE void sts_ex( void );
HD6309_INLINE void pref10( void );
HD6309_INLINE void pref11( void );

static const UINT8 flags8i[256]=	 /* increment */
{
CC_Z,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
CC_N|CC_V,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N
};
static const UINT8 flags8d[256]= /* decrement */
{
CC_Z,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,CC_V,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,
CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N
};

static const UINT8 index_cycle_em[256] = {        /* Index Loopup cycle counts, emulated 6809 */
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */

/* 0x0X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x1X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x2X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x3X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x4X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x5X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x6X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x7X */      1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
/* 0x8X */      2,    3,    2,    3,    0,    1,    1,    1,    1,    4,    1,    4,    1,    5,    4,    0,
/* 0x9X */      3,    6,   20,    6,    3,    4,    4,    4,    4,    7,    4,    7,    4,    8,    7,    5,
/* 0xAX */      2,    3,    2,    3,    0,    1,    1,    1,    1,    4,    1,    4,    1,    5,    4,    5,
/* 0xBX */      5,    6,   20,    6,    3,    4,    4,    4,    4,    7,    4,    7,    4,    8,    7,   20,
/* 0xCX */      2,    3,    2,    3,    0,    1,    1,    1,    1,    4,    1,    4,    1,    5,    4,    3,
/* 0xDX */      4,    6,   20,    6,    3,    4,    4,    4,    4,    7,    4,    7,    4,    8,    7,   20,
/* 0xEX */      2,    3,    2,    3,    0,    1,    1,    1,    1,    4,    1,    4,    1,    5,    4,    3,
/* 0xFX */      4,    6,   20,    6,    3,    4,    4,    4,    4,    7,    4,    7,    4,    8,    7,   20
};

static const UINT8 index_cycle_na[256] = {         /* Index Loopup cycle counts,
native 6309 */
/*       X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, XA, XB, XC, XD, XE, XF */

/* 0x0X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x1X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x2X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x3X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x4X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x5X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x6X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x7X */   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
/* 0x8X */   1,  2,  1,  2,  0,  1,  1,  1,  1,  3,  1,  2,  1,  3,  1,  0,
/* 0x9X */   3,  5, 19,  5,  3,  4,  4,  4,  4,  7,  4,  5,  4,  6,  4,  5,
/* 0xAX */   1,  2,  1,  2,  0,  1,  1,  1,  1,  3,  1,  2,  1,  3,  1,  2,
/* 0xBX */   5,  5, 19,  5,  3,  4,  4,  4,  4,  7,  4,  5,  4,  6,  4, 19,
/* 0xCX */   1,  2,  1,  2,  0,  1,  1,  1,  1,  3,  1,  2,  1,  3,  1,  1,
/* 0xDX */   4,  5, 19,  5,  3,  4,  4,  4,  4,  7,  4,  5,  4,  6,  4, 19,
/* 0xEX */   1,  2,  1,  2,  0,  1,  1,  1,  1,  3,  1,  2,  1,  3,  1,  1,
/* 0xFX */   4,  5, 19,  5,  3,  4,  4,  4,  4,  7,  4,  5,  4,  6,  4, 19
};

#define IIP0	19			/* Illegal instruction cycle count page 0 */
#define IIP1	20			/* Illegal instruction cycle count page 01 & 11 */

static const UINT8 ccounts_page0_em[256] =    /* Cycle Counts Page zero, Emulated 6809 */
{
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */     6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    3,    6,
/* 0x1X */     0,    0,    2,    4,    4, IIP0,    5,    9, IIP0,    2,    3, IIP0,    3,    2,    8,    6,
/* 0x2X */     3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
/* 0x3X */     4,    4,    4,    4,    5,    5,    5,    5, IIP0,    5,    3,    6,   20,   11, IIP0,   19,
/* 0x4X */     2, IIP0, IIP0,    2,    2, IIP0,    2,    2,    2,    2,    2, IIP0,    2,    2, IIP0,    2,
/* 0x5X */     2, IIP0, IIP0,    2,    2, IIP0,    2,    2,    2,    2,    2, IIP0,    2,    2, IIP0,    2,
/* 0x6X */     6,    7,    7,    6,    6,    6,    6,    6,    6,    6,    6,    7,    6,    6,    3,    6,
/* 0x7X */     7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    5,    7,    7,    4,    7,
/* 0x8X */     2,    2,    2,    4,    2,    2,    2, IIP0,    2,    2,    2,    2,    4,    7,    3, IIP0,
/* 0x9X */     4,    4,    4,    6,    4,    4,    4,    4,    4,    4,    4,    4,    6,    7,    5,    5,
/* 0xAX */     4,    4,    4,    6,    4,    4,    4,    4,    4,    4,    4,    4,    6,    7,    5,    5,
/* 0xBX */     5,    5,    5,    7,    5,    5,    5,    5,    5,    5,    5,    5,    7,    8,    6,    6,
/* 0xCX */     2,    2,    2,    4,    2,    2,    2, IIP0,    2,    2,    2,    2,    3,    5,    3, IIP0,
/* 0xDX */     4,    4,    4,    6,    4,    4,    4,    4,    4,    4,    4,    4,    5,    5,    5,    5,
/* 0xEX */     4,    4,    4,    6,    4,    4,    4,    4,    4,    4,    4,    4,    5,    5,    5,    5,
/* 0xFX */     5,    5,    5,    7,    5,    5,    5,    5,    5,    5,    5,    5,    6,    6,    6,    6
};

static const UINT8 ccounts_page0_na[256] =   /* Cycle Counts Page zero, Native 6309 */
{
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */     5,    6,    6,    5,    5,    6,    5,    5,    5,    5,    5,    6,    5,    4,    2,    5,
/* 0x1X */     0,    0,    1,    4,    4, IIP0,    4,    7, IIP0,    1,    2, IIP0,    3,    1,    5,    4,
/* 0x2X */     3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
/* 0x3X */     4,    4,    4,    4,    4,    4,    4,    4, IIP0,    4,    1,    6,   22,   10, IIP0,   21,
/* 0x4X */     1, IIP0, IIP0,    1,    1, IIP0,    1,    1,    1,    1,    1, IIP0,    1,    1, IIP0,    1,
/* 0x5X */     1, IIP0, IIP0,    1,    1, IIP0,    1,    1,    1,    1,    1, IIP0,    1,    1, IIP0,    1,
/* 0x6X */     6,    7,    7,    6,    6,    6,    6,    6,    6,    6,    6,    7,    6,    5,    3,    6,
/* 0x7X */     6,    7,    7,    6,    6,    7,    6,    6,    6,    6,    6,    5,    6,    5,    3,    6,
/* 0x8X */     2,    2,    2,    3,    2,    2,    2, IIP0,    2,    2,    2,    2,    3,    6,    3, IIP0,
/* 0x9X */     3,    3,    3,    4,    3,    3,    3,    3,    3,    3,    3,    3,    4,    6,    4,    4,
/* 0xAX */     4,    4,    4,    5,    4,    4,    4,    4,    4,    4,    4,    4,    5,    6,    5,    5,
/* 0xBX */     4,    4,    4,    5,    4,    4,    4,    4,    4,    4,    4,    4,    5,    7,    5,    5,
/* 0xCX */     2,    2,    2,    3,    2,    2,    2, IIP0,    2,    2,    2,    2,    3,    5,    3, IIP0,
/* 0xDX */     3,    3,    3,    4,    3,    3,    3,    3,    3,    3,    3,    3,    4,    4,    4,    4,
/* 0xEX */     4,    4,    4,    5,    4,    4,    4,    4,    4,    4,    4,    4,    5,    5,    5,    5,
/* 0xFX */     4,    4,    4,    5,    4,    4,    4,    4,    4,    4,    4,    4,    5,    5,    5,    5
};

static const UINT8 ccounts_page01_em[256] =    /* Cycle Counts Page 01, Emulated 6809 */
{
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x1X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x2X */   IIP1,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
/* 0x3X */      4,    4,    4,    4,    4,    4,    4,    4,    6,    6,    6,    6, IIP1, IIP1, IIP1,   20,
/* 0x4X */      2,  IIP1,IIP1,    2,    2, IIP1,    2,    2,    2,    2,    2, IIP1,    2,    2, IIP1,    2,
/* 0x5X */   IIP1, IIP1, IIP1,    3,    3, IIP1,    3, IIP1, IIP1,    3,    3, IIP1,    3,    3, IIP1,    3,
/* 0x6X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x7X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x8X */      5,    5,    5,    5,    5,    5,    4, IIP1,    5,    5,    5,    5,    5, IIP1,    4, IIP1,
/* 0x9X */      7,    7,    7,    7,    7,    7,    6,    6,    7,    7,    7,    7,    7, IIP1,    6,    6,
/* 0xAX */      7,    7,    7,    7,    7,    7,    6,    6,    7,    7,    7,    7,    7, IIP1,    6,    6,
/* 0xBX */      8,    8,    8,    8,    8,    8,    7,    7,    8,    8,    8,    8,    8, IIP1,    7,    7,
/* 0xCX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    4, IIP1,
/* 0xDX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    8,    8,    6,    6,
/* 0xEX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    8,    8,    6,    6,
/* 0xFX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    9,    9,    7,    7
};

static const UINT8 ccounts_page01_na[256] =   /* Cycle Counts Page 01, Native 6309 */
{
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x1X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x2X */   IIP1,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
/* 0x3X */      4,    4,    4,    4,    4,    4,    4,    4,    6,    6,    6,    6, IIP1, IIP1, IIP1,   22,
/* 0x4X */      1, IIP1, IIP1,    1,    1, IIP1,    1,    1,    1,    1,    1, IIP1,    1,    1, IIP1,    1,
/* 0x5X */   IIP1, IIP1, IIP1,    2,    2, IIP1,    2, IIP1, IIP1,    2,    2, IIP1,    2,    2, IIP1,    1,
/* 0x6X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x7X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x8X */      4,    4,    4,    4,    4,    4,    4, IIP1,    4,    4,    4,    4,    4, IIP1,    4, IIP1,
/* 0x9X */      5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5, IIP1,    5,    5,
/* 0xAX */      6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6, IIP1,    6,    6,
/* 0xBX */      6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6,    6, IIP1,    6,    6,
/* 0xCX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    4, IIP1,
/* 0xDX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    7,    7,    5,    5,
/* 0xEX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    8,    8,    6,    6,
/* 0xFX */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    8,    8,    6,    6
};

static const UINT8 ccounts_page11_em[256] =    /* Cycle Counts Page 11, Emulated 6809 */
{
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x1X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x2X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x3X */      7,    7,    7,    7,    7,    7,    7,    8,    3,    3,    3,    3,    4,    5, IIP1,   20,
/* 0x4X */   IIP1, IIP1, IIP1,    2, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    2, IIP1,    2,    2, IIP1,    2,
/* 0x5X */   IIP1, IIP1, IIP1,    2, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    2, IIP1,    2,    2, IIP1,    2,
/* 0x6X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x7X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x8X */      3,    3, IIP1,    5, IIP1, IIP1,    3, IIP1, IIP1, IIP1, IIP1,    3,    5,   25,   34,   28,
/* 0x9X */      5,    5, IIP1,    7, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5,    7,   27,   36,   30,
/* 0xAX */      5,    5, IIP1,    7, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5,    7,   27,   36,   30,
/* 0xBX */      6,    6, IIP1,    8, IIP1, IIP1,    6,    6, IIP1, IIP1, IIP1,    6,    8,   28,   37,   31,
/* 0xCX */      3,    3, IIP1, IIP1, IIP1, IIP1,    3, IIP1, IIP1, IIP1, IIP1,    3, IIP1, IIP1, IIP1, IIP1,
/* 0xDX */      5,    5, IIP1, IIP1, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5, IIP1, IIP1, IIP1, IIP1,
/* 0xEX */      5,    5, IIP1, IIP1, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5, IIP1, IIP1, IIP1, IIP1,
/* 0xFX */      6,    6, IIP1, IIP1, IIP1, IIP1,    6,    6, IIP1, IIP1, IIP1,    6, IIP1, IIP1, IIP1, IIP1
};

static const UINT8 ccounts_page11_na[256] =    /* Cycle Counts Page 11, Native 6309 */
{
/*           0xX0, 0xX1, 0xX2, 0xX3, 0xX4, 0xX5, 0xX6, 0xX7, 0xX8, 0xX9, 0xXA, 0xXB, 0xXC, 0xXD, 0xXE, 0xXF */
/* 0x0X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x1X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x2X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x3X */      6,    6,    6,    6,    6,    6,    6,    7,    3,    3,    3,    3,    4,    5, IIP1,   22,
/* 0x4X */   IIP1, IIP1, IIP1,    2, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    2, IIP1,    2,    2, IIP1,    2,
/* 0x5X */   IIP1, IIP1, IIP1,    2, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,    2, IIP1,    2,    2, IIP1,    2,
/* 0x6X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x7X */   IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1, IIP1,
/* 0x8X */      3,    3, IIP1,    4, IIP1, IIP1,    3, IIP1, IIP1, IIP1, IIP1,    3,    4,   25,   34,   28,
/* 0x9X */      4,    4, IIP1,    5, IIP1, IIP1,    4,    4, IIP1, IIP1, IIP1,    4,    5,   26,   35,   29,
/* 0xAX */      5,    5, IIP1,    6, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5,    6,   27,   36,   30,
/* 0xBX */      5,    5, IIP1,    6, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5,    6,   27,   36,   30,
/* 0xCX */      3,    3, IIP1, IIP1, IIP1, IIP1,    3, IIP1, IIP1, IIP1, IIP1,    3, IIP1, IIP1, IIP1, IIP1,
/* 0xDX */      4,    4, IIP1, IIP1, IIP1, IIP1,    4,    4, IIP1, IIP1, IIP1,    4, IIP1, IIP1, IIP1, IIP1,
/* 0xEX */      5,    5, IIP1, IIP1, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5, IIP1, IIP1, IIP1, IIP1,
/* 0xFX */      5,    5, IIP1, IIP1, IIP1, IIP1,    5,    5, IIP1, IIP1, IIP1,    5, IIP1, IIP1, IIP1, IIP1
};

#ifndef BIG_SWITCH

static void (*const hd6309_main[0x100])(void) = {
/*          0xX0,   0xX1,     0xX2,    0xX3,    0xX4,    0xX5,    0xX6,    0xX7,
            0xX8,   0xX9,     0xXA,    0xXB,    0xXC,    0xXD,    0xXE,    0xXF   */

/* 0x0X */  neg_di,  oim_di,  aim_di,  com_di,  lsr_di,  eim_di,  ror_di,  asr_di,
            asl_di,  rol_di,  dec_di,  tim_di,  inc_di,  tst_di,  jmp_di,  clr_di,

/* 0x1X */  pref10,  pref11,  nop,     sync,    sexw,    IIError, lbra,    lbsr,
            IIError, daa,     orcc,    IIError, andcc,   sex,     exg,     tfr,

/* 0x2X */  bra,     brn,     bhi,     bls,     bcc,     bcs,     bne,     beq,
            bvc,     bvs,     bpl,     bmi,     bge,     blt,     bgt,     ble,

/* 0x3X */  leax,    leay,    leas,    leau,    pshs,    puls,    pshu,    pulu,
            IIError, rts,     abx,     rti,     cwai,    mul,     IIError, swi,

/* 0x4X */  nega,    IIError, IIError, coma,    lsra,    IIError, rora,    asra,
            asla,    rola,    deca,    IIError, inca,    tsta,    IIError, clra,

/* 0x5X */  negb,    IIError, IIError, comb,    lsrb,    IIError, rorb,    asrb,
            aslb,    rolb,    decb,    IIError, incb,    tstb,    IIError, clrb,

/* 0x6X */  neg_ix,  oim_ix,  aim_ix,  com_ix,  lsr_ix,  eim_ix,  ror_ix,  asr_ix,
            asl_ix,  rol_ix,  dec_ix,  tim_ix,  inc_ix,  tst_ix,  jmp_ix,  clr_ix,

/* 0x7X */  neg_ex,  oim_ex,  aim_ex,  com_ex,  lsr_ex,  eim_ex,  ror_ex,  asr_ex,
            asl_ex,  rol_ex,  dec_ex,  tim_ex,  inc_ex,  tst_ex,  jmp_ex,  clr_ex,

/* 0x8X */  suba_im, cmpa_im, sbca_im, subd_im, anda_im, bita_im, lda_im,  IIError,
            eora_im, adca_im, ora_im,  adda_im, cmpx_im, bsr,     ldx_im,  IIError,

/* 0x9X */  suba_di, cmpa_di, sbca_di, subd_di, anda_di, bita_di, lda_di,  sta_di,
            eora_di, adca_di, ora_di,  adda_di, cmpx_di, jsr_di,  ldx_di,  stx_di,

/* 0xAX */  suba_ix, cmpa_ix, sbca_ix, subd_ix, anda_ix, bita_ix, lda_ix,  sta_ix,
            eora_ix, adca_ix, ora_ix,  adda_ix, cmpx_ix, jsr_ix,  ldx_ix,  stx_ix,

/* 0xBX */  suba_ex, cmpa_ex, sbca_ex, subd_ex, anda_ex, bita_ex, lda_ex,  sta_ex,
            eora_ex, adca_ex, ora_ex,  adda_ex, cmpx_ex, jsr_ex,  ldx_ex,  stx_ex,

/* 0xCX */  subb_im, cmpb_im, sbcb_im, addd_im, andb_im, bitb_im, ldb_im,  IIError,
            eorb_im, adcb_im, orb_im,  addb_im, ldd_im,  ldq_im,  ldu_im,  IIError,

/* 0xDX */  subb_di, cmpb_di, sbcb_di, addd_di, andb_di, bitb_di, ldb_di,  stb_di,
            eorb_di, adcb_di, orb_di,  addb_di, ldd_di,  std_di,  ldu_di,  stu_di,

/* 0xEX */  subb_ix, cmpb_ix, sbcb_ix, addd_ix, andb_ix, bitb_ix, ldb_ix,  stb_ix,
            eorb_ix, adcb_ix, orb_ix,  addb_ix, ldd_ix,  std_ix,  ldu_ix,  stu_ix,

/* 0xFX */  subb_ex, cmpb_ex, sbcb_ex, addd_ex, andb_ex, bitb_ex, ldb_ex,  stb_ex,
            eorb_ex, adcb_ex, orb_ex,  addb_ex, ldd_ex,  std_ex,  ldu_ex,  stu_ex
};

static void (*const hd6309_page01[0x100])(void) = {
/*          0xX0,   0xX1,     0xX2,    0xX3,    0xX4,    0xX5,    0xX6,    0xX7,
            0xX8,   0xX9,     0xXA,    0xXB,    0xXC,    0xXD,    0xXE,    0xXF   */

/* 0x0X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x1X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x2X */  IIError, lbrn,    lbhi,    lbls,    lbcc,    lbcs,    lbne,    lbeq,
			lbvc,    lbvs,    lbpl,    lbmi,    lbge,    lblt,    lbgt,    lble,

/* 0x3X */  addr_r,  adcr,    subr,    sbcr,    andr,    orr,     eorr,    cmpr,
			pshsw,   pulsw,   pshuw,   puluw,   IIError, IIError, IIError, swi2,

/* 0x4X */  negd,    IIError, IIError, comd,    lsrd,    IIError, rord,    asrd,
			asld,    rold,    decd,    IIError, incd,    tstd,    IIError, clrd,

/* 0x5X */  IIError, IIError, IIError, comw,    lsrw,    IIError, rorw,    IIError,
			IIError, rolw,    decw,    IIError, incw,    tstw,    IIError, clrw,

/* 0x6X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x7X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x8X */  subw_im, cmpw_im, sbcd_im, cmpd_im, andd_im, bitd_im, ldw_im,  IIError,
			eord_im, adcd_im, ord_im,  addw_im, cmpy_im, IIError, ldy_im,  IIError,

/* 0x9X */  subw_di, cmpw_di, sbcd_di, cmpd_di, andd_di, bitd_di, ldw_di,  stw_di,
			eord_di, adcd_di, ord_di,  addw_di, cmpy_di, IIError, ldy_di,  sty_di,

/* 0xAX */  subw_ix, cmpw_ix, sbcd_ix, cmpd_ix, andd_ix, bitd_ix, ldw_ix,  stw_ix,
			eord_ix, adcd_ix, ord_ix,  addw_ix, cmpy_ix, IIError, ldy_ix,  sty_ix,

/* 0xBX */  subw_ex, cmpw_ex, sbcd_ex, cmpd_ex, andd_ex, bitd_ex, ldw_ex,  stw_ex,
			eord_ex, adcd_ex, ord_ex,  addw_ex, cmpy_ex, IIError, ldy_ex,  sty_ex,

/* 0xCX */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, lds_im,  IIError,

/* 0xDX */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, ldq_di,  stq_di,  lds_di,  sts_di,

/* 0xEX */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, ldq_ix,  stq_ix,  lds_ix,  sts_ix,

/* 0xFX */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, ldq_ex,  stq_ex,  lds_ex,  sts_ex
};
static void (*const hd6309_page11[0x100])(void) = {
/*          0xX0,   0xX1,     0xX2,    0xX3,    0xX4,    0xX5,    0xX6,    0xX7,
            0xX8,   0xX9,     0xXA,    0xXB,    0xXC,    0xXD,    0xXE,    0xXF   */

/* 0x0X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x1X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x2X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x3X */  band,    biand,   bor,     bior,    beor,    bieor,   ldbt,    stbt,
			tfmpp,   tfmmm,   tfmpc,   tfmcp,   bitmd_im,ldmd_im, IIError, swi3,

/* 0x4X */  IIError, IIError, IIError, come,    IIError, IIError, IIError, IIError,
			IIError, IIError, dece,    IIError, ince,    tste,    IIError, clre,

/* 0x5X */  IIError, IIError, IIError, comf,    IIError, IIError, IIError, IIError,
			IIError, IIError, decf,    IIError, incf,    tstf,    IIError, clrf,

/* 0x6X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x7X */  IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,
			IIError, IIError, IIError, IIError, IIError, IIError, IIError, IIError,

/* 0x8X */  sube_im, cmpe_im, IIError, cmpu_im, IIError, IIError, lde_im,  IIError,
			IIError, IIError, IIError, adde_im, cmps_im, divd_im, divq_im, muld_im,

/* 0x9X */  sube_di, cmpe_di, IIError, cmpu_di, IIError, IIError, lde_di,  ste_di,
			IIError, IIError, IIError, adde_di, cmps_di, divd_di, divq_di, muld_di,

/* 0xAX */  sube_ix, cmpe_ix, IIError, cmpu_ix, IIError, IIError, lde_ix,  ste_ix,
			IIError, IIError, IIError, adde_ix, cmps_ix, divd_ix, divq_ix, muld_ix,

/* 0xBX */  sube_ex, cmpe_ex, IIError, cmpu_ex, IIError, IIError, lde_ex,  ste_ex,
			IIError, IIError, IIError, adde_ex, cmps_ex, divd_ex, divq_ex, muld_ex,

/* 0xCX */  subf_im, cmpf_im, IIError, IIError, IIError, IIError, ldf_im,  IIError,
			IIError, IIError, IIError, addf_im, IIError, IIError, IIError, IIError,

/* 0xDX */  subf_di, cmpf_di, IIError, IIError, IIError, IIError, ldf_di,  stf_di,
			IIError, IIError, IIError, addf_di, IIError, IIError, IIError, IIError,

/* 0xEX */  subf_ix, cmpf_ix, IIError, IIError, IIError, IIError, ldf_ix,  stf_ix,
			IIError, IIError, IIError, addf_ix, IIError, IIError, IIError, IIError,

/* 0xFX */  subf_ex, cmpf_ex, IIError, IIError, IIError, IIError, ldf_ex,  stf_ex,
			IIError, IIError, IIError, addf_ex, IIError, IIError, IIError, IIError

};

#endif /* BIG_SWITCH */
