mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-01-02 23:32:02 +00:00
Z80: disassmbler tweaks
Change-Id: I22a3d34516e46bed68eb23ffd9b31cee0a92db6d
This commit is contained in:
parent
0e5258197e
commit
aee8bd786d
@ -894,17 +894,17 @@ addr_t disassemble(addr_t addr) {
|
|||||||
addr_t addr2 = addr;
|
addr_t addr2 = addr;
|
||||||
|
|
||||||
// 0123456789012345678901234567890123456789
|
// 0123456789012345678901234567890123456789
|
||||||
// AAAA : HH HH HH HH HH : LD RR,($XXXX)
|
// AAAA : HH HH HH HH : LD RR,($XXXX)
|
||||||
|
|
||||||
strfill(buffer, ' ', sizeof(buffer));
|
strfill(buffer, ' ', sizeof(buffer));
|
||||||
buffer[5] = ':';
|
buffer[5] = ':';
|
||||||
buffer[22] = ':';
|
buffer[19] = ':';
|
||||||
|
|
||||||
// Address
|
// Address
|
||||||
strhex4(buffer, addr);
|
strhex4(buffer, addr);
|
||||||
|
|
||||||
// Opcode
|
// Opcode
|
||||||
ptr = buffer + 24;
|
ptr = buffer + 21;
|
||||||
if (PDC_DIN & 0x80) {
|
if (PDC_DIN & 0x80) {
|
||||||
strcpy_P(ptr, PSTR("**HALT**"));
|
strcpy_P(ptr, PSTR("**HALT**"));
|
||||||
} else if (PDC_DIN & 0x40) {
|
} else if (PDC_DIN & 0x40) {
|
||||||
|
Loading…
Reference in New Issue
Block a user