From aee8bd786d1c6f75cde8fca948e2d0a01f12a69c Mon Sep 17 00:00:00 2001 From: David Banks Date: Tue, 12 Nov 2019 13:25:35 +0000 Subject: [PATCH] Z80: disassmbler tweaks Change-Id: I22a3d34516e46bed68eb23ffd9b31cee0a92db6d --- firmware/disz80.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/disz80.c b/firmware/disz80.c index 573cf36..98ae840 100644 --- a/firmware/disz80.c +++ b/firmware/disz80.c @@ -894,17 +894,17 @@ addr_t disassemble(addr_t addr) { addr_t addr2 = addr; // 0123456789012345678901234567890123456789 - // AAAA : HH HH HH HH HH : LD RR,($XXXX) + // AAAA : HH HH HH HH : LD RR,($XXXX) strfill(buffer, ' ', sizeof(buffer)); buffer[5] = ':'; - buffer[22] = ':'; + buffer[19] = ':'; // Address strhex4(buffer, addr); // Opcode - ptr = buffer + 24; + ptr = buffer + 21; if (PDC_DIN & 0x80) { strcpy_P(ptr, PSTR("**HALT**")); } else if (PDC_DIN & 0x40) {