From 7d51c0144bcc12d49cc6d4d5207e086451b9b6b7 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Thu, 9 May 2013 19:24:18 -0700 Subject: Fix terminal instruction detection in disassembler --- z80inst.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'z80inst.c') diff --git a/z80inst.c b/z80inst.c index e6d2a33..d5def01 100644 --- a/z80inst.c +++ b/z80inst.c @@ -1531,4 +1531,11 @@ uint8_t z80_word_reg(uint8_t reg) } } +uint8_t z80_is_terminal(z80inst * inst) +{ + return inst->op == Z80_RET || inst->op == Z80_RETI || inst->op == Z80_RETN || inst->op == Z80_JP + || inst->op == Z80_JR || inst->op == Z80_HALT || (inst->op == Z80_NOP && inst->immed == 42); +} + + -- cgit v1.2.3