<!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>cmd</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/2419.html#L30'>cmd</a> 30 include/monitor.h char *cmd; /**<コマンド */</span> <span class='curline'><a href='../S/2419.html#L94'>cmd</a> 94 include/monitor.h MONCMDTYPE monitorcmd(char *cmd, MONARGS *args);</span> <span class='curline'><a href='../S/2417.html#L124'>cmd</a> 124 include/struct.h const COMET2CMD *cmd; /**<命令コード表の項目 */</span> <span class='curline'><a href='../S/2417.html#L193'>cmd</a> 193 include/struct.h WORD getcmdcode(const char *cmd, CMDTYPE type);</span> <span class='curline'><a href='../S/2422.html#L43'>cmd</a> 43 include/token.h char *cmd; /**<コマンド */</span> <span class='curline'><a href='../S/2837.html#L572'>cmd</a> 572 src/assemble.c if(strcmp(cmdl->cmd, cmdtbl[i].name) == 0) {</span> <span class='curline'><a href='../S/2837.html#L583'>cmd</a> 583 src/assemble.c WORD cmd = 0;</span> <span class='curline'><a href='../S/2837.html#L590'>cmd</a> 590 src/assemble.c if((cmd = getcmdcode(cmdl->cmd, NONE)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L591'>cmd</a> 591 src/assemble.c setcerr(112, cmdl->cmd); /* not command of no operand */</span> <span class='curline'><a href='../S/2837.html#L594'>cmd</a> 594 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L600'>cmd</a> 600 src/assemble.c if((cmd = getcmdcode(cmdl->cmd, R_)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L601'>cmd</a> 601 src/assemble.c setcerr(108, cmdl->cmd); /* not command of operand "r" */</span> <span class='curline'><a href='../S/2837.html#L604'>cmd</a> 604 src/assemble.c cmd |= (r_r1 << 4);</span> <span class='curline'><a href='../S/2837.html#L605'>cmd</a> 605 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L609'>cmd</a> 609 src/assemble.c if((cmd = getcmdcode(cmdl->cmd, R1_R2)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L610'>cmd</a> 610 src/assemble.c setcerr(109, cmdl->cmd); /* not command of operand "r1,r2" */</span> <span class='curline'><a href='../S/2837.html#L613'>cmd</a> 613 src/assemble.c cmd |= ((r_r1 << 4) | x_r2); /* 第1オペランド、第2オペランドともに汎用レジスタ */</span> <span class='curline'><a href='../S/2837.html#L615'>cmd</a> 615 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L619'>cmd</a> 619 src/assemble.c if((cmd = getcmdcode(cmdl->cmd, R_ADR_X)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L620'>cmd</a> 620 src/assemble.c setcerr(110, cmdl->cmd); /* not command of operand "r,adr[,x]" */</span> <span class='curline'><a href='../S/2837.html#L623'>cmd</a> 623 src/assemble.c cmd |= (r_r1 << 4); /* 第1オペランドは汎用レジスタ */</span> <span class='curline'><a href='../S/2837.html#L627'>cmd</a> 627 src/assemble.c setcerr(125, cmdl->cmd); /* not GR in operand x */</span> <span class='curline'><a href='../S/2837.html#L630'>cmd</a> 630 src/assemble.c cmd |= x_r2;</span> <span class='curline'><a href='../S/2837.html#L634'>cmd</a> 634 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L637'>cmd</a> 637 src/assemble.c setcerr(113, cmdl->cmd); /* operand too many in COMET II command */</span> <span class='curline'><a href='../S/2837.html#L643'>cmd</a> 643 src/assemble.c if((cmd = getcmdcode(cmdl->cmd, ADR_X)) == 0xFFFF) {</span> <span class='curline'><a href='../S/2837.html#L644'>cmd</a> 644 src/assemble.c setcerr(111, cmdl->cmd); /* not command of operand "adr[,x]" */</span> <span class='curline'><a href='../S/2837.html#L653'>cmd</a> 653 src/assemble.c cmd |= x_r2;</span> <span class='curline'><a href='../S/2837.html#L658'>cmd</a> 658 src/assemble.c if(pass == SECOND && cmd == 0x8000) { /* CALL命令 */</span> <span class='curline'><a href='../S/2837.html#L661'>cmd</a> 661 src/assemble.c if(cmd != 0x8000 || (pass == SECOND && adr == 0xFFFF)) {</span> <span class='curline'><a href='../S/2837.html#L665'>cmd</a> 665 src/assemble.c writememory(cmd, (asptr->ptr)++, pass);</span> <span class='curline'><a href='../S/2837.html#L674'>cmd</a> 674 src/assemble.c if(!cmdl->cmd[0]) {</span> <span class='curline'><a href='../S/2837.html#L682'>cmd</a> 682 src/assemble.c setcerr(113, cmdl->cmd); /* operand too many in COMET II command */</span> <span class='curline'><a href='../S/2837.html#L712'>cmd</a> 712 src/assemble.c FREE(cmdl->cmd);</span> <span class='curline'><a href='../S/2810.html#L189'>cmd</a> 189 src/disassemble.c WORD cmd = 0;</span> <span class='curline'><a href='../S/2810.html#L205'>cmd</a> 205 src/disassemble.c cmd = word & 0xFF00;</span> <span class='curline'><a href='../S/2810.html#L206'>cmd</a> 206 src/disassemble.c cmdname = getcmdname(cmd);</span> <span class='curline'><a href='../S/2810.html#L207'>cmd</a> 207 src/disassemble.c cmdtype = getcmdtype(cmd);</span> <span class='curline'><a href='../S/2810.html#L220'>cmd</a> 220 src/disassemble.c } else if(cmd == 0) {</span> <span class='curline'><a href='../S/2810.html#L228'>cmd</a> 228 src/disassemble.c inst = (cmd != 0x8100) ? true : false;</span> <span class='curline'><a href='../S/2810.html#L240'>cmd</a> 240 src/disassemble.c WORD cmd = 0;</span> <span class='curline'><a href='../S/2810.html#L246'>cmd</a> 246 src/disassemble.c cmd = sys->memory[i] & 0xFF00;</span> <span class='curline'><a href='../S/2810.html#L247'>cmd</a> 247 src/disassemble.c cmdname = getcmdname(cmd);</span> <span class='curline'><a href='../S/2810.html#L248'>cmd</a> 248 src/disassemble.c cmdtype = getcmdtype(cmd);</span> <span class='curline'><a href='../S/2810.html#L255'>cmd</a> 255 src/disassemble.c } else if(cmd == 0) {</span> <span class='curline'><a href='../S/2810.html#L264'>cmd</a> 264 src/disassemble.c inst = (cmd != 0x8100) ? true : false;</span> <span class='curline'><a href='../S/2804.html#L165'>cmd</a> 165 src/monitor.c moncmdl->cmd = strndup_chk(p, i, "moncmdl->cmd");</span> <span class='curline'><a href='../S/2804.html#L287'>cmd</a> 287 src/monitor.c MONCMDTYPE monitorcmd(char *cmd, MONARGS *args)</span> <span class='curline'><a href='../S/2804.html#L290'>cmd</a> 290 src/monitor.c if(stracmp(cmd, 2, (char* []){"a", "assemble"})) {</span> <span class='curline'><a href='../S/2804.html#L298'>cmd</a> 298 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"b", "break"})) {</span> <span class='curline'><a href='../S/2804.html#L300'>cmd</a> 300 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"c", "continue"})) {</span> <span class='curline'><a href='../S/2804.html#L303'>cmd</a> 303 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"d", "dump"})) {</span> <span class='curline'><a href='../S/2804.html#L305'>cmd</a> 305 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"l", "load"})) {</span> <span class='curline'><a href='../S/2804.html#L307'>cmd</a> 307 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"n", "next"})) {</span> <span class='curline'><a href='../S/2804.html#L310'>cmd</a> 310 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"q", "quit"})) {</span> <span class='curline'><a href='../S/2804.html#L313'>cmd</a> 313 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"r", "reverse"})) {</span> <span class='curline'><a href='../S/2804.html#L317'>cmd</a> 317 src/monitor.c } else if(stracmp(cmd, 1, (char* []){"reset"})) {</span> <span class='curline'><a href='../S/2804.html#L320'>cmd</a> 320 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"t", "trace"})) {</span> <span class='curline'><a href='../S/2804.html#L330'>cmd</a> 330 src/monitor.c } else if(stracmp(cmd, 2, (char* []){"T", "tracelogical"})) {</span> <span class='curline'><a href='../S/2804.html#L340'>cmd</a> 340 src/monitor.c } else if(stracmp(cmd, 3, (char* []){"?", "h", "help"})) {</span> <span class='curline'><a href='../S/2804.html#L367'>cmd</a> 367 src/monitor.c if(moncmdl->cmd != NULL) {</span> <span class='curline'><a href='../S/2804.html#L368'>cmd</a> 368 src/monitor.c FREE(moncmdl->cmd);</span> <span class='curline'><a href='../S/2804.html#L405'>cmd</a> 405 src/monitor.c cmdtype = monitorcmd(moncmdl->cmd, moncmdl->args);</span> <span class='curline'><a href='../S/2856.html#L78'>cmd</a> 78 src/struct.c unsigned hash_cmdtype(const char *cmd, CMDTYPE type);</span> <span class='curline'><a href='../S/2856.html#L88'>cmd</a> 88 src/struct.c unsigned hash_cmdtype(const char *cmd, CMDTYPE type)</span> <span class='curline'><a href='../S/2856.html#L96'>cmd</a> 96 src/struct.c keys[0]->val.s = strdup_chk(cmd, "keys[0].val.s");</span> <span class='curline'><a href='../S/2856.html#L120'>cmd</a> 120 src/struct.c p->cmd = &comet2cmd[i];</span> <span class='curline'><a href='../S/2856.html#L153'>cmd</a> 153 src/struct.c WORD getcmdcode(const char *cmd, CMDTYPE type)</span> <span class='curline'><a href='../S/2856.html#L158'>cmd</a> 158 src/struct.c assert(cmd != NULL);</span> <span class='curline'><a href='../S/2856.html#L159'>cmd</a> 159 src/struct.c for(p = cmdtab[HASH_CMDTYPE][hash_cmdtype(cmd, type)]; p != NULL; p = p->next) {</span> <span class='curline'><a href='../S/2856.html#L160'>cmd</a> 160 src/struct.c if(strcmp(cmd, p->cmd->name) == 0 && type == p->cmd->type) {</span> <span class='curline'><a href='../S/2856.html#L161'>cmd</a> 161 src/struct.c w = p->cmd->code;</span> <span class='curline'><a href='../S/2856.html#L194'>cmd</a> 194 src/struct.c if(code == t->cmd->code) {</span> <span class='curline'><a href='../S/2856.html#L195'>cmd</a> 195 src/struct.c ptr = t->cmd->ptr;</span> <span class='curline'><a href='../S/2856.html#L211'>cmd</a> 211 src/struct.c if(code == t->cmd->code) {</span> <span class='curline'><a href='../S/2856.html#L212'>cmd</a> 212 src/struct.c type = t->cmd->type;</span> <span class='curline'><a href='../S/2856.html#L225'>cmd</a> 225 src/struct.c char *cmd = NULL;</span> <span class='curline'><a href='../S/2856.html#L228'>cmd</a> 228 src/struct.c if(code == t->cmd->code) {</span> <span class='curline'><a href='../S/2856.html#L229'>cmd</a> 229 src/struct.c cmd = t->cmd->name;</span> <span class='curline'><a href='../S/2856.html#L233'>cmd</a> 233 src/struct.c return cmd;</span> <span class='curline'><a href='../S/2820.html#L148'>cmd</a> 148 src/token.c cmdl->cmd = strndup_chk(p, i, "cmdl.cmd");</span> <span class='curline'><a href='../S/944.html#L11'>cmd</a> 11 test/unit/getcmdcode/cmd.c char *cmd;</span> <span class='curline'><a href='../S/944.html#L32'>cmd</a> 32 test/unit/getcmdcode/cmd.c code = getcmdcode(cmdcodelist[i].cmd, cmdcodelist[i].type);</span> <span class='curline'><a href='../S/944.html#L33'>cmd</a> 33 test/unit/getcmdcode/cmd.c printf("%s:0%02o ---> #%04X\n", cmdcodelist[i].cmd, cmdcodelist[i].type, code);</span> <span class='curline'><a href='../S/951.html#L35'>cmd</a> 35 test/unit/linetok/cmd.c if(testcl->cmd != NULL){</span> <span class='curline'><a href='../S/951.html#L36'>cmd</a> 36 test/unit/linetok/cmd.c printf("cl->cmd: %s\n", testcl->cmd);</span> </pre> </body> </html>