<!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>pass</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#L136'>pass</a> 136 include/assemble.h bool assemblefile(const char *file, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L26'>pass</a> 26 src/assemble.c WORD getadr(const char *prog, const char *str, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L50'>pass</a> 50 src/assemble.c WORD getliteral(const char *str, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L61'>pass</a> 61 src/assemble.c void writememory(WORD word, WORD adr, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L72'>pass</a> 72 src/assemble.c void writestr(const char *str, bool literal, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L82'>pass</a> 82 src/assemble.c void writedc(const char *str, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L93'>pass</a> 93 src/assemble.c void assemble_start(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L104'>pass</a> 104 src/assemble.c void assemble_ds(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L115'>pass</a> 115 src/assemble.c void assemble_end(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L126'>pass</a> 126 src/assemble.c void assemble_dc(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L148'>pass</a> 148 src/assemble.c void assemble_in(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L172'>pass</a> 172 src/assemble.c void assemble_out(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L193'>pass</a> 193 src/assemble.c void assemble_rpush(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L215'>pass</a> 215 src/assemble.c void assemble_rpop(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L235'>pass</a> 235 src/assemble.c bool casl2cmd(CMD *cmdtbl, const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L245'>pass</a> 245 src/assemble.c bool assemble_comet2cmd(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L255'>pass</a> 255 src/assemble.c bool assembletok(const CMDLINE *cmdl, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L267'>pass</a> 267 src/assemble.c bool assembleline(const char *line, PASS pass);</span> <span class='curline'><a href='../S/2837.html#L319'>pass</a> 319 src/assemble.c WORD getadr(const char *prog, const char *str, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L324'>pass</a> 324 src/assemble.c adr = getliteral(str, pass);</span> <span class='curline'><a href='../S/2837.html#L328'>pass</a> 328 src/assemble.c if(pass == SECOND) {</span> <span class='curline'><a href='../S/2837.html#L357'>pass</a> 357 src/assemble.c WORD getliteral(const char *str, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L364'>pass</a> 364 src/assemble.c writestr(str, true, pass);</span> <span class='curline'><a href='../S/2837.html#L366'>pass</a> 366 src/assemble.c writememory(nh2word(str), (asptr->lptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L371'>pass</a> 371 src/assemble.c void writememory(WORD word, WORD adr, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L382'>pass</a> 382 src/assemble.c if(pass == SECOND && asmode.asdetail == true) {</span> <span class='curline'><a href='../S/2837.html#L387'>pass</a> 387 src/assemble.c void writestr(const char *str, bool literal, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L405'>pass</a> 405 src/assemble.c writememory(str[i], (asptr->lptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L408'>pass</a> 408 src/assemble.c writememory(str[i], (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L413'>pass</a> 413 src/assemble.c void writedc(const char *str, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L418'>pass</a> 418 src/assemble.c writestr(str, false, pass);</span> <span class='curline'><a href='../S/2837.html#L423'>pass</a> 423 src/assemble.c if(pass == SECOND && (adr = getlabel(asptr->prog, str)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L427'>pass</a> 427 src/assemble.c writememory(adr, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L431'>pass</a> 431 src/assemble.c void assemble_start(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L445'>pass</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#L449'>pass</a> 449 src/assemble.c void assemble_end(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L456'>pass</a> 456 src/assemble.c if(pass == FIRST) {</span> <span class='curline'><a href='../S/2837.html#L460'>pass</a> 460 src/assemble.c else if(pass == SECOND) {</span> <span class='curline'><a href='../S/2837.html#L466'>pass</a> 466 src/assemble.c void assemble_ds(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L473'>pass</a> 473 src/assemble.c writememory(0x0, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L480'>pass</a> 480 src/assemble.c void assemble_dc(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L487'>pass</a> 487 src/assemble.c writedc(cmdl->opd->opdv[i], pass);</span> <span class='curline'><a href='../S/2837.html#L494'>pass</a> 494 src/assemble.c void assemble_in(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L502'>pass</a> 502 src/assemble.c assembleline(" PUSH 0,GR1", pass);</span> <span class='curline'><a href='../S/2837.html#L503'>pass</a> 503 src/assemble.c assembleline(" PUSH 0,GR2", pass);</span> <span class='curline'><a href='../S/2837.html#L505'>pass</a> 505 src/assemble.c assembleline(line, pass);</span> <span class='curline'><a href='../S/2837.html#L507'>pass</a> 507 src/assemble.c assembleline(line, pass);</span> <span class='curline'><a href='../S/2837.html#L508'>pass</a> 508 src/assemble.c assembleline(" SVC 1", pass);</span> <span class='curline'><a href='../S/2837.html#L509'>pass</a> 509 src/assemble.c assembleline(" POP GR2", pass);</span> <span class='curline'><a href='../S/2837.html#L510'>pass</a> 510 src/assemble.c assembleline(" POP GR1", pass);</span> <span class='curline'><a href='../S/2837.html#L514'>pass</a> 514 src/assemble.c void assemble_out(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L522'>pass</a> 522 src/assemble.c assembleline(" PUSH 0,GR1", pass);</span> <span class='curline'><a href='../S/2837.html#L523'>pass</a> 523 src/assemble.c assembleline(" PUSH 0,GR2", pass);</span> <span class='curline'><a href='../S/2837.html#L525'>pass</a> 525 src/assemble.c assembleline(line, pass);</span> <span class='curline'><a href='../S/2837.html#L527'>pass</a> 527 src/assemble.c assembleline(line, pass);</span> <span class='curline'><a href='../S/2837.html#L528'>pass</a> 528 src/assemble.c assembleline(" SVC 2", pass);</span> <span class='curline'><a href='../S/2837.html#L529'>pass</a> 529 src/assemble.c assembleline(" LAD GR1,=#A", pass);</span> <span class='curline'><a href='../S/2837.html#L530'>pass</a> 530 src/assemble.c assembleline(" LAD GR2,=1", pass);</span> <span class='curline'><a href='../S/2837.html#L531'>pass</a> 531 src/assemble.c assembleline(" SVC 2", pass);</span> <span class='curline'><a href='../S/2837.html#L532'>pass</a> 532 src/assemble.c assembleline(" POP GR2", pass);</span> <span class='curline'><a href='../S/2837.html#L533'>pass</a> 533 src/assemble.c assembleline(" POP GR1", pass);</span> <span class='curline'><a href='../S/2837.html#L537'>pass</a> 537 src/assemble.c void assemble_rpush(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L547'>pass</a> 547 src/assemble.c assembleline(line, pass);</span> <span class='curline'><a href='../S/2837.html#L552'>pass</a> 552 src/assemble.c void assemble_rpop(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L562'>pass</a> 562 src/assemble.c assembleline(line, pass);</span> <span class='curline'><a href='../S/2837.html#L567'>pass</a> 567 src/assemble.c bool casl2cmd(CMD *cmdtbl, const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L574'>pass</a> 574 src/assemble.c (*cmdptr)(cmdl, pass);</span> <span class='curline'><a href='../S/2837.html#L581'>pass</a> 581 src/assemble.c bool assemble_comet2cmd(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L594'>pass</a> 594 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L605'>pass</a> 605 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L615'>pass</a> 615 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L632'>pass</a> 632 src/assemble.c adr = getadr(asptr->prog, cmdl->opd->opdv[1], pass); /* 第2オペランドはアドレス */</span> <span class='curline'><a href='../S/2837.html#L634'>pass</a> 634 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L635'>pass</a> 635 src/assemble.c writememory(adr, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L658'>pass</a> 658 src/assemble.c if(pass == SECOND && cmd == 0x8000) { /* CALL命令 */</span> <span class='curline'><a href='../S/2837.html#L661'>pass</a> 661 src/assemble.c if(cmd != 0x8000 || (pass == SECOND && adr == 0xFFFF)) {</span> <span class='curline'><a href='../S/2837.html#L662'>pass</a> 662 src/assemble.c adr = getadr(asptr->prog, cmdl->opd->opdv[0], pass);</span> <span class='curline'><a href='../S/2837.html#L665'>pass</a> 665 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L666'>pass</a> 666 src/assemble.c writememory(adr, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L671'>pass</a> 671 src/assemble.c bool assembletok(const CMDLINE *cmdl, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L678'>pass</a> 678 src/assemble.c if(casl2cmd(ascmd, cmdl, pass) == false && casl2cmd(macrocmd, cmdl, pass) == false) {</span> <span class='curline'><a href='../S/2837.html#L680'>pass</a> 680 src/assemble.c if(assemble_comet2cmd(cmdl, pass) == false) {</span> <span class='curline'><a href='../S/2837.html#L689'>pass</a> 689 src/assemble.c bool assembleline(const char *line, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L698'>pass</a> 698 src/assemble.c if(pass == FIRST && cmdl->label[0]) {</span> <span class='curline'><a href='../S/2837.html#L703'>pass</a> 703 src/assemble.c stat = assembletok(cmdl, pass);</span> <span class='curline'><a href='../S/2837.html#L723'>pass</a> 723 src/assemble.c bool assemblefile(const char *file, PASS pass)</span> <span class='curline'><a href='../S/2837.html#L735'>pass</a> 735 src/assemble.c if((pass == FIRST && asmode.src == true) || (pass == SECOND && asmode.asdetail == true)) {</span> <span class='curline'><a href='../S/2837.html#L738'>pass</a> 738 src/assemble.c if(assembleline(line, pass) == false) {</span> <span class='curline'><a href='../S/2837.html#L754'>pass</a> 754 src/assemble.c PASS pass;</span> <span class='curline'><a href='../S/2837.html#L762'>pass</a> 762 src/assemble.c for(pass = FIRST; pass <= SECOND; pass++) {</span> <span class='curline'><a href='../S/2837.html#L765'>pass</a> 765 src/assemble.c if(pass == FIRST) {</span> <span class='curline'><a href='../S/2837.html#L767'>pass</a> 767 src/assemble.c } else if(pass == SECOND) {</span> <span class='curline'><a href='../S/2837.html#L773'>pass</a> 773 src/assemble.c fprintf(stdout, "\nAssemble %s (%d)\n", filev[i], pass);</span> <span class='curline'><a href='../S/2837.html#L776'>pass</a> 776 src/assemble.c stat = assemblefile(filev[i], pass);</span> <span class='curline'><a href='../S/2837.html#L781'>pass</a> 781 src/assemble.c if(pass == FIRST && asmode.label == true) {</span> </pre> </body> </html>