comparison ztestrun.c @ 1705:9ab64ef5cba0

Initial stab at overflow flag implementation in CPU DSL. Probably broken for subtraction
author Michael Pavone <pavone@retrodev.com>
date Mon, 28 Jan 2019 21:15:27 -0800
parents 49a52c737bf0
children 48a43dff4dc0
comparison
equal deleted inserted replaced
1704:89932fd29abd 1705:9ab64ef5cba0
114 context->iy, 114 context->iy,
115 context->sp, context->imode, context->iff1, context->iff2); 115 context->sp, context->imode, context->iff1, context->iff2);
116 printf("Flags: SZYHXVNC\n" 116 printf("Flags: SZYHXVNC\n"
117 " %d%d%d%d%d%d%d%d\n", 117 " %d%d%d%d%d%d%d%d\n",
118 context->last_flag_result >> 7, context->zflag != 0, context->last_flag_result >> 5 & 1, context->chflags >> 3 & 1, 118 context->last_flag_result >> 7, context->zflag != 0, context->last_flag_result >> 5 & 1, context->chflags >> 3 & 1,
119 context->last_flag_result >> 3 & 1, context->pvflag != 0, context->nflag, context->chflags >> 7 & 1 119 context->last_flag_result >> 3 & 1, context->pvflag != 0, context->nflag != 0, context->chflags >> 7 & 1
120 ); 120 );
121 puts("--Alternate Regs--"); 121 puts("--Alternate Regs--");
122 printf("A: %X\nB: %X\nC: %X\nD: %X\nE: %X\nHL: %X\n", 122 printf("A: %X\nB: %X\nC: %X\nD: %X\nE: %X\nHL: %X\n",
123 context->alt[7], context->alt[0], context->alt[1], 123 context->alt[7], context->alt[0], context->alt[1],
124 context->alt[2], context->alt[3], 124 context->alt[2], context->alt[3],