<!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>prog</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/2413.html#L37'>prog</a> 37 include/assemble.h char *prog; /**<他のプログラムで参照する入口名 */</span> <span class='curline'><a href='../S/2413.html#L49'>prog</a> 49 include/assemble.h char *prog; /**<プログラム */</span> <span class='curline'><a href='../S/2413.html#L92'>prog</a> 92 include/assemble.h WORD getlabel(const char *prog, const char *label);</span> <span class='curline'><a href='../S/2413.html#L103'>prog</a> 103 include/assemble.h bool addlabel(const char *prog, const char *label, WORD adr);</span> <span class='curline'><a href='../S/2837.html#L26'>prog</a> 26 src/assemble.c WORD getadr(const char *prog, const char *str, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L319'>prog</a> 319 src/assemble.c WORD getadr(const char *prog, const char *str, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L329'>prog</a> 329 src/assemble.c if((adr = getlabel(prog, str)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L423'>prog</a> 423 src/assemble.c if(pass == SECOND && (adr = getlabel(asptr->prog, str)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L442'>prog</a> 442 src/assemble.c strcpy(asptr->prog, cmdl->label);</span> <span class='curline'><a href='../S/2837.html#L445'>prog</a> 445 src/assemble.c asptr->ptr = execptr->start = getadr(asptr->prog, cmdl->opd->opdv[0], pass);</span> <span class='curline'><a href='../S/2837.html#L463'>prog</a> 463 src/assemble.c strcpy(asptr->prog, "");</span> <span class='curline'><a href='../S/2837.html#L632'>prog</a> 632 src/assemble.c adr = getadr(asptr->prog, cmdl->opd->opdv[1], pass); /* 第2オペランドはアドレス */</span> <span class='curline'><a href='../S/2837.html#L662'>prog</a> 662 src/assemble.c adr = getadr(asptr->prog, cmdl->opd->opdv[0], pass);</span> <span class='curline'><a href='../S/2837.html#L699'>prog</a> 699 src/assemble.c stat = addlabel(asptr->prog, cmdl->label, asptr->ptr);</span> <span class='curline'><a href='../S/2837.html#L759'>prog</a> 759 src/assemble.c asptr->prog = malloc_chk(LABELSIZE + 1, "asptr.prog");</span> <span class='curline'><a href='../S/2837.html#L791'>prog</a> 791 src/assemble.c FREE(asptr->prog); /* アセンブル時のプロパティを解放 */</span> <span class='curline'><a href='../S/2836.html#L20'>prog</a> 20 src/label.c unsigned labelhash(const char *prog, const char *label);</span> <span class='curline'><a href='../S/2836.html#L60'>prog</a> 60 src/label.c unsigned labelhash(const char *prog, const char *label)</span> <span class='curline'><a href='../S/2836.html#L66'>prog</a> 66 src/label.c if(prog[0]) {</span> <span class='curline'><a href='../S/2836.html#L67'>prog</a> 67 src/label.c keys[i++] = label_hashkey(prog);</span> <span class='curline'><a href='../S/2836.html#L89'>prog</a> 89 src/label.c WORD getlabel(const char *prog, const char *label)</span> <span class='curline'><a href='../S/2836.html#L91'>prog</a> 91 src/label.c assert(prog != NULL && label != NULL);</span> <span class='curline'><a href='../S/2836.html#L95'>prog</a> 95 src/label.c for(p = labels[labelhash(prog, label)]; p != NULL; p = p->next) {</span> <span class='curline'><a href='../S/2836.html#L97'>prog</a> 97 src/label.c if((!prog[0] || (strcmp(prog, l->prog) == 0)) &&</span> <span class='curline'><a href='../S/2836.html#L106'>prog</a> 106 src/label.c bool addlabel(const char *prog, const char *label, WORD adr)</span> <span class='curline'><a href='../S/2836.html#L114'>prog</a> 114 src/label.c if(getlabel(prog, label) != 0xFFFF) {</span> <span class='curline'><a href='../S/2836.html#L122'>prog</a> 122 src/label.c l->prog = strdup_chk(prog, "label.prog");</span> <span class='curline'><a href='../S/2836.html#L130'>prog</a> 130 src/label.c p->next = labels[h = labelhash(prog, label)];</span> <span class='curline'><a href='../S/2836.html#L150'>prog</a> 150 src/label.c if(l[i]->prog[0]) {</span> <span class='curline'><a href='../S/2836.html#L151'>prog</a> 151 src/label.c fprintf(stdout, "%s.", l[i]->prog);</span> <span class='curline'><a href='../S/2836.html#L167'>prog</a> 167 src/label.c FREE(p->label->prog);</span> </pre> </body> </html>