Mercurial > hg > Members > kono > os9 > sbc09
changeset 79:8f3c0906adb9
fix disas
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 07 Aug 2018 12:22:04 +0900 (2018-08-07) |
parents | 02120537b90d |
children | 33ef6aeeac3c |
files | src/trace.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/trace.c Tue Aug 07 12:17:09 2018 +0900 +++ b/src/trace.c Tue Aug 07 12:22:04 2018 +0900 @@ -311,11 +311,10 @@ if (phyadr > phymem+memsize) goto restart; #else phyadr = mem+adr; - prog = (char*)phyadr - adr ; if (phyadr > mem+0xffff) goto restart; #endif if (d=='i') { - adr = disasm(adr,adr+(len>16?16:len)); + adr = disasm(adr,adr+(len>16?16:len))-16; } else { hexadump(phyadr,len>16?16:len,adr,16); }