summaryrefslogtreecommitdiff
path: root/z80inst.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-04-03 23:49:07 -0700
committerMichael Pavone <pavone@retrodev.com>2020-04-03 23:49:07 -0700
commitd87fd5679ff41de226e91126c55b48a83751606a (patch)
treee251121174349ddc317b1ce7b4b7f75c8aa4dc84 /z80inst.c
parentf800328d2c7e5e05557e957aea5bb768ff0aa709 (diff)
Z80 HALT isn't really terminal. Fixes bug in Z80 disassembler
Diffstat (limited to 'z80inst.c')
-rw-r--r--z80inst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/z80inst.c b/z80inst.c
index d0588f2..7d85e40 100644
--- a/z80inst.c
+++ b/z80inst.c
@@ -1570,7 +1570,7 @@ 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);
+ || inst->op == Z80_JR || (inst->op == Z80_NOP && inst->immed == 42);
}