pr 38 include/struct.h WORD pr; /**<プログラムレジスタ */ pr 9 src/dump.c fprintf(stdout, "#%04X: adr :", sys->cpu->pr); pr 22 src/dump.c fprintf(stdout, "#%04X: %04X: ", sys->cpu->pr, i); pr 41 src/dump.c char *pr = word2bit(sys->cpu->pr); pr 47 src/dump.c fprintf(stdout, "#%04X: GR%d: ", sys->cpu->pr, i); pr 51 src/dump.c fprintf(stdout, "#%04X: SP: %6d = #%04X = %s\n", sys->cpu->pr, sys->cpu->sp, sys->cpu->sp, sp); pr 52 src/dump.c fprintf(stdout, "#%04X: PR: %6d = #%04X = %s\n", sys->cpu->pr, sys->cpu->pr, sys->cpu->pr, pr); pr 53 src/dump.c fprintf(stdout, "#%04X: FR (OF SF ZF): %s\n", sys->cpu->pr, fr + L3BIT); /* FRは下位3けたを表示 */ pr 55 src/dump.c FREE(pr); pr 10 src/exec.c char *pr2str(WORD pr); pr 93 src/exec.c char *pr2str(WORD pr) pr 97 src/exec.c sprintf(str, "PR:#%04X", pr); pr 168 src/exec.c setcerr(205, s = pr2str(sys->cpu->pr)); /* r/r1 in word #1 - not GR */ pr 181 src/exec.c setcerr(206, s = pr2str(sys->cpu->pr)); /* r/r1 in word #1 - not GR */ pr 205 src/exec.c setcerr(207, s = pr2str(sys->cpu->pr + 1)); /* address in word #2 - out of memory */ pr 220 src/exec.c sys->cpu->pr += 1; pr 225 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 227 src/exec.c sys->cpu->pr += 2; pr 232 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 234 src/exec.c sys->cpu->pr += 1; pr 239 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 241 src/exec.c sys->cpu->pr += 2; pr 246 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 248 src/exec.c sys->cpu->pr += 2; pr 272 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 274 src/exec.c sys->cpu->pr += 2; pr 279 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 281 src/exec.c sys->cpu->pr += 1; pr 286 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 288 src/exec.c sys->cpu->pr += 2; pr 293 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 295 src/exec.c sys->cpu->pr += 1; pr 332 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 334 src/exec.c sys->cpu->pr += 2; pr 339 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 341 src/exec.c sys->cpu->pr += 1; pr 346 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 348 src/exec.c sys->cpu->pr += 2; pr 353 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 355 src/exec.c sys->cpu->pr += 1; pr 360 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 362 src/exec.c sys->cpu->pr += 2; pr 367 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 369 src/exec.c sys->cpu->pr += 1; pr 374 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 376 src/exec.c sys->cpu->pr += 2; pr 381 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 383 src/exec.c sys->cpu->pr += 1; pr 388 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 390 src/exec.c sys->cpu->pr += 2; pr 395 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 397 src/exec.c sys->cpu->pr += 1; pr 412 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 414 src/exec.c sys->cpu->pr += 2; pr 419 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 421 src/exec.c sys->cpu->pr += 1; pr 436 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 438 src/exec.c sys->cpu->pr += 2; pr 443 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 445 src/exec.c sys->cpu->pr += 1; pr 450 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 474 src/exec.c sys->cpu->pr += 2; pr 479 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 506 src/exec.c sys->cpu->pr += 2; pr 511 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 532 src/exec.c sys->cpu->pr += 2; pr 537 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 558 src/exec.c sys->cpu->pr += 2; pr 563 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 565 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 567 src/exec.c sys->cpu->pr += 2; pr 573 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 575 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 577 src/exec.c sys->cpu->pr += 2; pr 583 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 585 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 587 src/exec.c sys->cpu->pr += 2; pr 593 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 595 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 597 src/exec.c sys->cpu->pr += 2; pr 603 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 605 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 607 src/exec.c sys->cpu->pr += 2; pr 613 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 614 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 620 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 622 src/exec.c sys->cpu->pr += 2; pr 628 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]}; pr 632 src/exec.c setcerr(203, s = pr2str(sys->cpu->pr)); /* Stack Pointer (SP) - stack underflow */ pr 636 src/exec.c sys->cpu->pr += 1; pr 643 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 644 src/exec.c sys->memory[--(sys->cpu->sp)] = sys->cpu->pr + 1; pr 645 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]); pr 654 src/exec.c sys->cpu->pr = sys->memory[(sys->cpu->sp)++] + 1; pr 660 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]}; pr 673 src/exec.c sys->cpu->pr += 2; pr 690 src/exec.c for (sys->cpu->pr = execptr->start; ; ) { pr 694 src/exec.c fprintf(stdout, "#%04X: Register::::\n", sys->cpu->pr); pr 698 src/exec.c fprintf(stdout, "#%04X: Memory::::\n", sys->cpu->pr); pr 705 src/exec.c (execmode.monitor == true && sys->cpu->pr == execptr->start) || pr 706 src/exec.c execmode.step == true || getbps(sys->cpu->pr) == true) pr 708 src/exec.c if(sys->cpu->pr == execptr->start) { pr 714 src/exec.c if(sys->cpu->pr >= sys->memsize) { pr 715 src/exec.c setcerr(201, s = pr2str(sys->cpu->pr)); /* Program Register (PR) - memory overflow */ pr 720 src/exec.c setcerr(202, s = pr2str(sys->cpu->pr)); /* Stack Pointer (SP) - stack overflow */ pr 725 src/exec.c if((cmdptr = getcmdptr(sys->memory[sys->cpu->pr] & 0xFF00)) == NULL) { pr 726 src/exec.c setcerr(204, s = pr2str(sys->cpu->pr)); /* OP in word #1 - not command code */ pr 327 src/monitor.c fprintf(stdout, "#%04X: Register::::\n", sys->cpu->pr); pr 337 src/monitor.c fprintf(stdout, "#%04X: Register::::\n", sys->cpu->pr); pr 268 src/struct.c sys->cpu->pr = 0x0; /* プログラムレジスタ */