<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>pr</title> <meta name='robots' content='noindex,nofollow' /> <meta name='generator' content='GLOBAL-6.6.5' /> <meta http-equiv='Content-Style-Type' content='text/css' /> <link rel='stylesheet' type='text/css' href='../style.css' /> </head> <body> <pre> <span class='curline'><a href='../S/2417.html#L38'>pr</a> 38 include/struct.h WORD pr; /**<プログラムレジスタ */</span> <span class='curline'><a href='../S/2840.html#L9'>pr</a> 9 src/dump.c fprintf(stdout, "#%04X: adr :", sys->cpu->pr);</span> <span class='curline'><a href='../S/2840.html#L22'>pr</a> 22 src/dump.c fprintf(stdout, "#%04X: %04X: ", sys->cpu->pr, i);</span> <span class='curline'><a href='../S/2840.html#L41'>pr</a> 41 src/dump.c char *pr = word2bit(sys->cpu->pr);</span> <span class='curline'><a href='../S/2840.html#L47'>pr</a> 47 src/dump.c fprintf(stdout, "#%04X: GR%d: ", sys->cpu->pr, i);</span> <span class='curline'><a href='../S/2840.html#L51'>pr</a> 51 src/dump.c fprintf(stdout, "#%04X: SP: %6d = #%04X = %s\n", sys->cpu->pr, sys->cpu->sp, sys->cpu->sp, sp);</span> <span class='curline'><a href='../S/2840.html#L52'>pr</a> 52 src/dump.c fprintf(stdout, "#%04X: PR: %6d = #%04X = %s\n", sys->cpu->pr, sys->cpu->pr, sys->cpu->pr, pr);</span> <span class='curline'><a href='../S/2840.html#L53'>pr</a> 53 src/dump.c fprintf(stdout, "#%04X: FR (OF SF ZF): %s\n", sys->cpu->pr, fr + L3BIT); /* FRは下位3けたを表示 */</span> <span class='curline'><a href='../S/2840.html#L55'>pr</a> 55 src/dump.c FREE(pr);</span> <span class='curline'><a href='../S/2812.html#L10'>pr</a> 10 src/exec.c char *pr2str(WORD pr);</span> <span class='curline'><a href='../S/2812.html#L93'>pr</a> 93 src/exec.c char *pr2str(WORD pr)</span> <span class='curline'><a href='../S/2812.html#L97'>pr</a> 97 src/exec.c sprintf(str, "PR:#%04X", pr);</span> <span class='curline'><a href='../S/2812.html#L168'>pr</a> 168 src/exec.c setcerr(205, s = pr2str(sys->cpu->pr)); /* r/r1 in word #1 - not GR */</span> <span class='curline'><a href='../S/2812.html#L181'>pr</a> 181 src/exec.c setcerr(206, s = pr2str(sys->cpu->pr)); /* r/r1 in word #1 - not GR */</span> <span class='curline'><a href='../S/2812.html#L205'>pr</a> 205 src/exec.c setcerr(207, s = pr2str(sys->cpu->pr + 1)); /* address in word #2 - out of memory */</span> <span class='curline'><a href='../S/2812.html#L220'>pr</a> 220 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L225'>pr</a> 225 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L227'>pr</a> 227 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L232'>pr</a> 232 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L234'>pr</a> 234 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L239'>pr</a> 239 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L241'>pr</a> 241 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L246'>pr</a> 246 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L248'>pr</a> 248 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L272'>pr</a> 272 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L274'>pr</a> 274 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L279'>pr</a> 279 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L281'>pr</a> 281 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L286'>pr</a> 286 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L288'>pr</a> 288 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L293'>pr</a> 293 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L295'>pr</a> 295 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L332'>pr</a> 332 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L334'>pr</a> 334 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L339'>pr</a> 339 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L341'>pr</a> 341 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L346'>pr</a> 346 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L348'>pr</a> 348 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L353'>pr</a> 353 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L355'>pr</a> 355 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L360'>pr</a> 360 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L362'>pr</a> 362 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L367'>pr</a> 367 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L369'>pr</a> 369 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L374'>pr</a> 374 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L376'>pr</a> 376 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L381'>pr</a> 381 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L383'>pr</a> 383 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L388'>pr</a> 388 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L390'>pr</a> 390 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L395'>pr</a> 395 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L397'>pr</a> 397 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L412'>pr</a> 412 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L414'>pr</a> 414 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L419'>pr</a> 419 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L421'>pr</a> 421 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L436'>pr</a> 436 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L438'>pr</a> 438 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L443'>pr</a> 443 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L445'>pr</a> 445 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L450'>pr</a> 450 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L474'>pr</a> 474 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L479'>pr</a> 479 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L506'>pr</a> 506 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L511'>pr</a> 511 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L532'>pr</a> 532 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L537'>pr</a> 537 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L558'>pr</a> 558 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L563'>pr</a> 563 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L565'>pr</a> 565 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L567'>pr</a> 567 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L573'>pr</a> 573 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L575'>pr</a> 575 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L577'>pr</a> 577 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L583'>pr</a> 583 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L585'>pr</a> 585 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L587'>pr</a> 587 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L593'>pr</a> 593 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L595'>pr</a> 595 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L597'>pr</a> 597 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L603'>pr</a> 603 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L605'>pr</a> 605 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L607'>pr</a> 607 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L613'>pr</a> 613 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L614'>pr</a> 614 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L620'>pr</a> 620 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L622'>pr</a> 622 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L628'>pr</a> 628 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr]};</span> <span class='curline'><a href='../S/2812.html#L632'>pr</a> 632 src/exec.c setcerr(203, s = pr2str(sys->cpu->pr)); /* Stack Pointer (SP) - stack underflow */</span> <span class='curline'><a href='../S/2812.html#L636'>pr</a> 636 src/exec.c sys->cpu->pr += 1;</span> <span class='curline'><a href='../S/2812.html#L643'>pr</a> 643 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L644'>pr</a> 644 src/exec.c sys->memory[--(sys->cpu->sp)] = sys->cpu->pr + 1;</span> <span class='curline'><a href='../S/2812.html#L645'>pr</a> 645 src/exec.c sys->cpu->pr = get_adr_x(w[1], w[0]);</span> <span class='curline'><a href='../S/2812.html#L654'>pr</a> 654 src/exec.c sys->cpu->pr = sys->memory[(sys->cpu->sp)++] + 1;</span> <span class='curline'><a href='../S/2812.html#L660'>pr</a> 660 src/exec.c WORD w[] = {sys->memory[sys->cpu->pr], sys->memory[sys->cpu->pr + 1]};</span> <span class='curline'><a href='../S/2812.html#L673'>pr</a> 673 src/exec.c sys->cpu->pr += 2;</span> <span class='curline'><a href='../S/2812.html#L690'>pr</a> 690 src/exec.c for (sys->cpu->pr = execptr->start; ; ) {</span> <span class='curline'><a href='../S/2812.html#L694'>pr</a> 694 src/exec.c fprintf(stdout, "#%04X: Register::::\n", sys->cpu->pr);</span> <span class='curline'><a href='../S/2812.html#L698'>pr</a> 698 src/exec.c fprintf(stdout, "#%04X: Memory::::\n", sys->cpu->pr);</span> <span class='curline'><a href='../S/2812.html#L705'>pr</a> 705 src/exec.c (execmode.monitor == true && sys->cpu->pr == execptr->start) ||</span> <span class='curline'><a href='../S/2812.html#L706'>pr</a> 706 src/exec.c execmode.step == true || getbps(sys->cpu->pr) == true)</span> <span class='curline'><a href='../S/2812.html#L708'>pr</a> 708 src/exec.c if(sys->cpu->pr == execptr->start) {</span> <span class='curline'><a href='../S/2812.html#L714'>pr</a> 714 src/exec.c if(sys->cpu->pr >= sys->memsize) {</span> <span class='curline'><a href='../S/2812.html#L715'>pr</a> 715 src/exec.c setcerr(201, s = pr2str(sys->cpu->pr)); /* Program Register (PR) - memory overflow */</span> <span class='curline'><a href='../S/2812.html#L720'>pr</a> 720 src/exec.c setcerr(202, s = pr2str(sys->cpu->pr)); /* Stack Pointer (SP) - stack overflow */</span> <span class='curline'><a href='../S/2812.html#L725'>pr</a> 725 src/exec.c if((cmdptr = getcmdptr(sys->memory[sys->cpu->pr] & 0xFF00)) == NULL) {</span> <span class='curline'><a href='../S/2812.html#L726'>pr</a> 726 src/exec.c setcerr(204, s = pr2str(sys->cpu->pr)); /* OP in word #1 - not command code */</span> <span class='curline'><a href='../S/2804.html#L327'>pr</a> 327 src/monitor.c fprintf(stdout, "#%04X: Register::::\n", sys->cpu->pr);</span> <span class='curline'><a href='../S/2804.html#L337'>pr</a> 337 src/monitor.c fprintf(stdout, "#%04X: Register::::\n", sys->cpu->pr);</span> <span class='curline'><a href='../S/2856.html#L268'>pr</a> 268 src/struct.c sys->cpu->pr = 0x0; /* プログラムレジスタ */</span> </pre> </body> </html>