/* $9c CPX direct -**** (6803) */ INLINE void cpx_di( void ) { UINT32 r,d; PAIR b; DIRWORD(b); d = X; r = d - b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); }
/* $9c CMPX direct -***- */ INLINE void cmpx_di( void ) { UINT32 r,d; PAIR b; DIRWORD(b); d = X; r = d - b.d; CLR_NZV; SET_NZ16(r); SET_V16(d,b.d,r); }
/* $d3 ADDD direct -**** */ INLINE void addd_di( void ) { UINT32 r,d; PAIR b; DIRWORD(b); d = D; r = d + b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); D = r; }
/* $93 SUBD direct -**** */ M6800_INLINE void subd_di( void ) { UINT32 r,d; PAIR b; DIRWORD(b); d = D; r = d - b.d; CLR_NZVC; SET_FLAGS16(d,b.d,r); D=r; }
/* $9c CMPX direct -***- */ INLINE void cmpx_di( void ) { #if 0 UINT32 r,d; PAIR b; DIRWORD(b); d = X; r = d - b.d; CLR_NZV; SET_NZ16(r); SET_V16(d,b.d,r); #else PAIR r,d,b; DIRWORD(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 }
/* $de LDX direct -**0- */ INLINE void ldx_di( void ) { DIRWORD(m6808.x); CLR_NZV; SET_NZ16(X); }
/* $dc LDD direct -**0- */ INLINE void ldd_di( void ) { DIRWORD(m6808.d); CLR_NZV; SET_NZ16(D); }
/* $9e LDS direct -**0- */ INLINE void lds_di( void ) { DIRWORD(m6808.s); CLR_NZV; SET_NZ16(S); }