Hi,
I'm an expert on assembly languages, I've written an M68K emulator years ago.
The following is a snippet of code of my M68K emulator,
#define M68K_FLG_ADD16\
X = C = (r >> 16);\
NZS = s16(r);\
V = ((s ^ r) & (d ^ r)) >> 15;
#define M68K_FLG_ADD32\
X = C = u32(t >> 32);\
NZS = r;\
V = ((s ^ r) & (d ^ r)) >> 31;
#define M68K_ADD8(src, dst, length, cycle)\
INLINE void I_add_##src##dst##8(u8 *&pc, u16 opcode)\
{\
M68K_XYSDR;\
M68K_R##src(8, s);\
M68K_R##dst(8, d);\
r = d + s;\
M68K_W##dst(8);\
M68K_FLG_ADD8;\
M68K_END(length, cycle);\
}
I'm the right person to do your project, thanks.
Regards,
Steve