Mercurial > hg > Members > kono > os9 > sbc09
diff src/trace.c @ 59:7c6dc25c2b05
add comment
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Jul 2018 20:17:12 +0900 |
parents | 2088fd998865 |
children | 41f14f365b34 |
line wrap: on
line diff
--- a/src/trace.c Mon Jul 23 19:36:38 2018 +0900 +++ b/src/trace.c Mon Jul 23 20:17:12 2018 +0900 @@ -1,7 +1,8 @@ /* 6808 Simulator V092 * + * 2018 Shinji KONO * tracer - + * */ #include<stdio.h> @@ -239,6 +240,9 @@ bpskip = getarg(s+1,0); } break; + /* + * we should have disassembler for a mmu page + */ case 'x': // dump { char *next = s+1; if (s[1]=='i') next=s+2; @@ -376,6 +380,8 @@ mem[0xffa7]=0x3f; #endif attention = escape = 1; + // we have to reload romfile + // readimage(); break; default: // one step trace trskip = 1; @@ -387,6 +393,9 @@ set_term(escchar); } +/* + * keep break point / watch point in a list + */ void setbreak(int adr, int count) { BPTR bp = calloc(1,sizeof(BP)); bp->count = count; @@ -402,6 +411,12 @@ breakpoint = bp; } +/* + * length call instruction + * + * if call instruction, put temporary break on next instruction + * (ignoring page boundary, sorry) + */ int nexti(void) { #ifdef USE_MMU int op1 = *mem0(phymem,pcreg,mmu); @@ -453,10 +468,4 @@ return ofs; } - - - - - - - +/* end */