10 fprintf(stdout, "#%04X: adr :", cpu->pr);
11 for(i = 0; i < memsize && i < col; i++) {
12 fprintf(stdout, " %04X", i);
14 fprintf(stdout, "\n");
16 for(i = 0; i < memsize; i++) {
18 fprintf(stdout, "#%04X: %04X: ", cpu->pr, i);
20 fprintf(stdout, "%04X", memory[i]);
21 if(i > 0 && (i + 1) % col == 0) {
22 fprintf(stdout, "\n");
29 /* COMET IIのレジスタを表示 */
33 for(i = 0; i < GRSIZE; i++ ) {
34 fprintf(stdout, "#%04X: GR%d: ", cpu->pr, i);
35 print_dumpword(cpu->gr[i], (&execmode)->logical);
37 fprintf(stdout, "#%04X: SP: %6d = #%04X = %s\n",
38 cpu->pr, cpu->sp, cpu->sp, word2bit(cpu->sp));
39 fprintf(stdout, "#%04X: PR: %6d = #%04X = %s\n",
40 cpu->pr, cpu->pr, cpu->pr, word2bit(cpu->pr));
41 fprintf(stdout, "#%04X: FR (OF SF ZF): %s\n",
42 cpu->pr, (word2bit(cpu->fr)+13));