/* $bc CPX extended -**** (6803) */ INLINE void cpx_ex( void ) { UINT32 r,d; PAIR b; EXTWORD(b); d = X; r = d - b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); }
/* $bc CMPX extended -***- */ INLINE void cmpx_ex( void ) { UINT32 r,d; PAIR b; EXTWORD(b); d = X; r = d - b.d; CLR_NZV; SET_NZ16(r); SET_V16(d,b.d,r); }
/* $fc ADDX extended -**** NSC8105 only. Flags are a guess */ INLINE void addx_ex( void ) { UINT32 r,d; PAIR b; EXTWORD(b); d = X; r = d + b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); X = r; }
/* $b3 SUBD extended -**** */ INLINE void subd_ex( void ) { UINT32 r,d; PAIR b; EXTWORD(b); d = D; r = d - b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); D=r; }
/* $f3 ADDD extended -**** */ M6800_INLINE void addd_ex( void ) { UINT32 r,d; PAIR b; EXTWORD(b); d = D; r = d + b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); D = r; }
/* $bc CMPX extended -***- */ INLINE void cmpx_ex( void ) { #if 0 UINT32 r,d; PAIR b; EXTWORD(b); d = X; r = d - b.d; CLR_NZV; SET_NZ16(r); SET_V16(d,b.d,r); #else PAIR r,d,b; EXTWORD(b); d.d = X; r.w.l = d.b.h - b.b.h; CLR_NZV; SET_N8(r.b.l); SET_V8(d.b.h, b.b.h, r.w.l); r.d = d.d - b.d; SET_Z16(r.d); #endif }
/* $fe LDX extended -**0- */ INLINE void ldx_ex( void ) { EXTWORD(m6808.x); CLR_NZV; SET_NZ16(X); }
/* $fc LDD extended -**0- */ INLINE void ldd_ex( void ) { EXTWORD(m6808.d); CLR_NZV; SET_NZ16(D); }
/* $be LDS extended -**0- */ INLINE void lds_ex( void ) { EXTWORD(m6808.s); CLR_NZV; SET_NZ16(S); }