Mercurial > repos > blastem
comparison ztestrun.c @ 1046:a27fdf43f1a7
Fix DAA and implement half-carry for remaining instructions. Z80 core now passes ZEXDOC!
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 26 Jul 2016 23:12:23 -0700 |
parents | 74cc31040521 |
children | ef7ee9919a73 |
comparison
equal
deleted
inserted
replaced
1045:e0489abfdab0 | 1046:a27fdf43f1a7 |
---|---|
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: SZVNC\n" | 111 printf("Flags: SZHVNC\n" |
112 " %d%d%d%d%d\n", context.flags[ZF_S], context.flags[ZF_Z], context.flags[ZF_PV], context.flags[ZF_N], context.flags[ZF_C]); | 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]); |
113 puts("--Alternate Regs--"); | 113 puts("--Alternate Regs--"); |
114 printf("A: %X\nB: %X\nC: %X\nD: %X\nE: %X\nHL: %X\n", | 114 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], | 115 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], | 116 context.alt_regs[Z80_D], context.alt_regs[Z80_E], |
117 (context.alt_regs[Z80_H] << 8) | context.alt_regs[Z80_L]); | 117 (context.alt_regs[Z80_H] << 8) | context.alt_regs[Z80_L]); |