Mercurial > repos > blastem
comparison ztestrun.c @ 1049:ef7ee9919a73
Partial support for undocumented flag bits
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Jul 2016 22:59:09 -0700 |
parents | a27fdf43f1a7 |
children | 56713dac6a69 |
comparison
equal
deleted
inserted
replaced
1048:05ecef6c73b6 | 1049:ef7ee9919a73 |
---|---|
106 context.regs[Z80_D], context.regs[Z80_E], | 106 context.regs[Z80_D], context.regs[Z80_E], |
107 (context.regs[Z80_H] << 8) | context.regs[Z80_L], | 107 (context.regs[Z80_H] << 8) | context.regs[Z80_L], |
108 (context.regs[Z80_IXH] << 8) | context.regs[Z80_IXL], | 108 (context.regs[Z80_IXH] << 8) | context.regs[Z80_IXL], |
109 (context.regs[Z80_IYH] << 8) | context.regs[Z80_IYL], | 109 (context.regs[Z80_IYH] << 8) | context.regs[Z80_IYL], |
110 context.sp, context.im, context.iff1, context.iff2); | 110 context.sp, context.im, context.iff1, context.iff2); |
111 printf("Flags: SZHVNC\n" | 111 printf("Flags: SZYHXVNC\n" |
112 " %d%d%d%d%d%d\n", context.flags[ZF_S], context.flags[ZF_Z], context.flags[ZF_H], context.flags[ZF_PV], context.flags[ZF_N], context.flags[ZF_C]); | 112 " %d%d%d%d%d%d%d%d\n", |
113 context.flags[ZF_S], context.flags[ZF_Z], context.flags[ZF_XY] >> 5 & 1, context.flags[ZF_H], | |
114 context.flags[ZF_XY] >> 3 & 1, context.flags[ZF_PV], context.flags[ZF_N], context.flags[ZF_C] | |
115 ); | |
113 puts("--Alternate Regs--"); | 116 puts("--Alternate Regs--"); |
114 printf("A: %X\nB: %X\nC: %X\nD: %X\nE: %X\nHL: %X\n", | 117 printf("A: %X\nB: %X\nC: %X\nD: %X\nE: %X\nHL: %X\n", |
115 context.alt_regs[Z80_A], context.alt_regs[Z80_B], context.alt_regs[Z80_C], | 118 context.alt_regs[Z80_A], context.alt_regs[Z80_B], context.alt_regs[Z80_C], |
116 context.alt_regs[Z80_D], context.alt_regs[Z80_E], | 119 context.alt_regs[Z80_D], context.alt_regs[Z80_E], |
117 (context.alt_regs[Z80_H] << 8) | context.alt_regs[Z80_L]); | 120 (context.alt_regs[Z80_H] << 8) | context.alt_regs[Z80_L]); |