comparison ztestgen.c @ 1042:a6c6b621d0dc

Implement Z80 DAA. Implement half-carry flag for the rest of the "easy" cases. Implement flags for IN instruction. Fix implementation of IN for IN F, (C) case
author Michael Pavone <pavone@retrodev.com>
date Sun, 24 Jul 2016 17:17:59 -0700
parents 3072fb746601
children cd6f4cea97b6
comparison
equal deleted inserted replaced
1041:70338a4a9889 1042:a6c6b621d0dc
463 463
464 464
465 uint8_t should_skip(z80inst * inst) 465 uint8_t should_skip(z80inst * inst)
466 { 466 {
467 return inst->op >= Z80_DJNZ || (inst->op >= Z80_LDI && inst->op <= Z80_CPDR) || inst->op == Z80_HALT 467 return inst->op >= Z80_DJNZ || (inst->op >= Z80_LDI && inst->op <= Z80_CPDR) || inst->op == Z80_HALT
468 || inst->op == Z80_DAA || inst->op == Z80_RLD || inst->op == Z80_RRD || inst->op == Z80_NOP 468 || inst->op == Z80_RLD || inst->op == Z80_RRD || inst->op == Z80_NOP
469 || inst->op == Z80_DI || inst->op == Z80_EI; 469 || inst->op == Z80_DI || inst->op == Z80_EI;
470 } 470 }
471 471
472 void z80_gen_all() 472 void z80_gen_all()
473 { 473 {