bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/25344] z80 disassembler recursion


From: sergey.belyashov at gmail dot com
Subject: [Bug binutils/25344] z80 disassembler recursion
Date: Sat, 04 Jan 2020 11:43:35 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25344

--- Comment #1 from Sergey Belyashov <sergey.belyashov at gmail dot com> ---
You are right. 0x40, 0x49, 0x52 and 0x5b are ez80 opcode prefixes which changes
memory model of next instruction. 0x40 + 0x40 is impossible opcode.

I will fix it soon (within a week). You may try fix it. Move lines placed at
end of suffix() (opcodes/z80.c):
  buf_in->n_used += buf.n_used;
  buf_in->n_fetch += buf.n_fetch;
before:
  if (*p == '.') /* suffix already present */

It should fix error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]