comparison z80inst.c @ 313:a13329645ea3

Fix terminal instruction detection in disassembler
author Mike Pavone <pavone@retrodev.com>
date Thu, 09 May 2013 19:24:18 -0700
parents 147e31983730
children 54c0e5f22198
comparison
equal deleted inserted replaced
312:cf7ecda060c7 313:a13329645ea3
1529 default: 1529 default:
1530 return Z80_UNUSED; 1530 return Z80_UNUSED;
1531 } 1531 }
1532 } 1532 }
1533 1533
1534 1534 uint8_t z80_is_terminal(z80inst * inst)
1535 {
1536 return inst->op == Z80_RET || inst->op == Z80_RETI || inst->op == Z80_RETN || inst->op == Z80_JP
1537 || inst->op == Z80_JR || inst->op == Z80_HALT || (inst->op == Z80_NOP && inst->immed == 42);
1538 }
1539
1540
1541