COPY_SEG
#define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff;
#undef COPY_SEG
#define COPY_SEG(X) mc->gregs[REG_##X] = regs->gp[X] & 0xffff;