From a5aaff7df278dc8f05e35e00781f802ade28728c Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 15 Jun 2015 20:24:29 -0400 Subject: [PATCH] fix +D -F disassemble bug --- DumpOBJ.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DumpOBJ.cc b/DumpOBJ.cc index 50c6a87..c82a470 100644 --- a/DumpOBJ.cc +++ b/DumpOBJ.cc @@ -2335,7 +2335,7 @@ while (NextSeg()) { while (count <= mark) { PutCTPC(); GetOpCode(); - if (checkf && ((pc > codelen) || ((! opcode) && (pc == codelen)))) + if ((checkf || header) && ((pc > codelen) || ((! opcode) && (pc == codelen)))) break; if (((kind & 0x001F) == 1) && checkf && (opcode < OPALIGN) && (opcode != 0))