i                  19 include/hash.h         int i;                  /**<int型のデータ */
i                 393 src/assemble.c     for(int i = 1; str[i] != '\'' || str[++i] == '\''; i++) {
i                 395 src/assemble.c         if(!str[i]) {
i                 405 src/assemble.c             writememory(str[i], (asptr->lptr)++, pass);
i                 408 src/assemble.c             writememory(str[i], (asptr->ptr)++, pass);
i                 472 src/assemble.c     for(int i = 0; i < atoi(cmdl->opd->opdv[0]); i++) {
i                 486 src/assemble.c     for(int i = 0; i < cmdl->opd->opdc; i++) {
i                 487 src/assemble.c         writedc(cmdl->opd->opdv[i], pass);
i                 545 src/assemble.c     for(int i = 1; i <= GRSIZE-1; i++) {
i                 546 src/assemble.c         sprintf(line, "    PUSH 0,GR%d", i);
i                 560 src/assemble.c     for(int i = GRSIZE-1; i >= 1; i--) {
i                 561 src/assemble.c         sprintf(line, "    POP GR%d", i);
i                 571 src/assemble.c     for(int i = 0; cmdtbl[i].name[0]; i++) {
i                 572 src/assemble.c         if(strcmp(cmdl->cmd, cmdtbl[i].name) == 0) {
i                 573 src/assemble.c             cmdptr = cmdtbl[i].ptr;
i                 707 src/assemble.c             for(int i = 0; i < cmdl->opd->opdc; i++) {
i                 708 src/assemble.c                 FREE(cmdl->opd->opdv[i]);
i                 753 src/assemble.c     int i;
i                 763 src/assemble.c         for(i = 0; i < filec; i++) {
i                 766 src/assemble.c                 bp[i] = asptr->ptr;
i                 768 src/assemble.c                 asptr->ptr = bp[i];
i                 773 src/assemble.c                 fprintf(stdout, "\nAssemble %s (%d)\n", filev[i], pass);
i                 776 src/assemble.c             stat = assemblefile(filev[i], pass);
i                 163 src/casl2.c        for(int i = 0; i < asfilecnt; i++) {           /* 引数からファイル名配列を取得 */
i                 164 src/casl2.c            asfile[i] = argv[optind + i];
i                  19 src/cerr.c         for(int i = 0; i < cerrc; i++) {
i                  25 src/cerr.c             p->cerr = &cerrv[i];
i                  50 src/cmem.c         for(int i = strlen(s) - 1; i > 0 && (s[i] == '\n' || s[i] == '\r' || s[i] == ' ' || s[i] == '\t'); i--) {
i                  51 src/cmem.c             s[i] = '\0';
i                  59 src/cmem.c         for(int i = 0; s[i]; i++) {
i                  61 src/cmem.c             if(s[i] == '\'' && s[i+1] != '\'' && (quoting == false || s[i-1] != '\'')) {
i                  64 src/cmem.c             } else if(quoting == false && s[i] == ';') {
i                  65 src/cmem.c                 s[i] = '\0';
i                  76 src/cmem.c         for(int i = 0; i < l-1-i; i++) {
i                  77 src/cmem.c             char tmp = t[i];
i                  78 src/cmem.c             t[i] = t[l-1-i];
i                  79 src/cmem.c             t[l-1-i] = tmp;
i                  84 src/disassemble.c     for(int i = 0; i < codecol-ascol; i++){
i                 150 src/disassemble.c     for(int i = 0; i < wcnt - 1; i++) {
i                 187 src/disassemble.c     WORD i = 0;
i                 204 src/disassemble.c     for(word = fgetword(fp); !feof(fp); i++, word = fgetword(fp)) {
i                 210 src/disassemble.c                 disassemble_cmd_r(NONE, "nop", 0, i);
i                 214 src/disassemble.c                     disassemble_dc(0, i);
i                 216 src/disassemble.c                     disassemble_ds(zcnt, i);
i                 217 src/disassemble.c                     i += zcnt - 1;
i                 221 src/disassemble.c             disassemble_dc(word, i);
i                 224 src/disassemble.c                 disassemble_cmd_adr_x(cmdtype, cmdname, word, fgetword(fp), i++);
i                 226 src/disassemble.c                 disassemble_cmd_r(cmdtype, cmdname, word, i);
i                 245 src/disassemble.c     for(int i = start; i <= end; i++) {
i                 246 src/disassemble.c         cmd = sys->memory[i] & 0xFF00;
i                 249 src/disassemble.c         if(sys->memory[i] == 0) {
i                 251 src/disassemble.c                 disassemble_cmd_r(NONE, "nop", 0, i);
i                 253 src/disassemble.c                 disassemble_dc(0, i);
i                 256 src/disassemble.c             disassemble_dc(sys->memory[i], i);
i                 259 src/disassemble.c                 disassemble_cmd_adr_x(cmdtype, cmdname, sys->memory[i], sys->memory[i+1], i);
i                 260 src/disassemble.c                 i++;
i                 262 src/disassemble.c                 disassemble_cmd_r(cmdtype, cmdname, sys->memory[i], i);
i                  13 src/dump.c         for(int i = 0; i < sys->memsize && i < col; i++) {
i                  14 src/dump.c             fprintf(stdout, " %04X", i);
i                  19 src/dump.c         for(int i = start; i < end; i++) {
i                  20 src/dump.c             mod = i % col;
i                  21 src/dump.c             if(mod == 0 || i == start) {
i                  22 src/dump.c                 fprintf(stdout, "#%04X: %04X: ", sys->cpu->pr, i);
i                  24 src/dump.c             if(i == start) {
i                  29 src/dump.c             fprintf(stdout, "%04X", sys->memory[i]);
i                  30 src/dump.c             if((i > 0 && (i + 1) % col == 0) || (i + 1) == end) {
i                  46 src/dump.c         for(int i = 0; i < GRSIZE; i++ ) {
i                  47 src/dump.c             fprintf(stdout, "#%04X: GR%d: ", sys->cpu->pr, i);
i                  48 src/dump.c             print_dumpword(sys->cpu->gr[i], execmode.logical);
i                 103 src/exec.c         int i;
i                 110 src/exec.c         for(i = 0; i < INSIZE; i++) {
i                 111 src/exec.c             if(!buf[i] || buf[i] == '\n') {
i                 112 src/exec.c                 --i;
i                 115 src/exec.c             if(sys->cpu->gr[1] + i > execptr->end) {
i                 119 src/exec.c             sys->memory[sys->cpu->gr[1] + i] = buf[i];
i                 121 src/exec.c         sys->memory[sys->cpu->gr[2]] = i + 1;
i                 127 src/exec.c         int i;
i                 130 src/exec.c         for(i = 0; i < sys->memory[sys->cpu->gr[2]]; i++) {
i                 131 src/exec.c             if(sys->cpu->gr[1] + i > execptr->end) {
i                 138 src/exec.c             if(((w = sys->memory[sys->cpu->gr[1]+i]) >= 0x20 && w <= 0x7E) ||    /* JIS X 0201ラテン文字 */
i                 457 src/exec.c         for(int i = 0; i < get_adr_x(w[1], w[0]); i++) {
i                 486 src/exec.c         for(int i = 0; i < get_adr_x(w[1], w[0]); i++) {
i                 516 src/exec.c         for(int i = 0; i < get_adr_x(w[1], w[0]); i++) {
i                 542 src/exec.c         for(int i = 0; i < get_adr_x(w[1], w[0]); i++) {
i                  10 src/hash.c         for(int i = 0; i < keyc; i++) {
i                  11 src/hash.c             switch(keyv[i]->type) {
i                  13 src/hash.c                 for(int j = 0; keyv[i]->val.s[j]; j++) {
i                  14 src/hash.c                     hashval = keyv[i]->val.s[j] + HASHNUM * hashval;
i                  18 src/hash.c                 hashval = keyv[i]->val.i + HASHNUM * hashval;
i                  63 src/label.c        int i = 0;
i                  67 src/label.c            keys[i++] = label_hashkey(prog);
i                  69 src/label.c        keys[i] = label_hashkey(label);
i                  70 src/label.c        h = hash(i+1, keys, LABELTABSIZE);
i                  71 src/label.c        for(int j = 0; j < i + 1; j++) {
i                 142 src/label.c        for(int i = 0; i < LABELTABSIZE; i++) {
i                 143 src/label.c            for(p = labels[i]; p != NULL; p = p->next) {
i                 149 src/label.c        for(int i = 0; i < s; i++) {
i                 150 src/label.c            if(l[i]->prog[0]) {
i                 151 src/label.c                fprintf(stdout, "%s.", l[i]->prog);
i                 153 src/label.c            fprintf(stdout, "%s ---> #%04X\n", l[i]->label, l[i]->adr);
i                 160 src/label.c        int i;
i                 164 src/label.c        for(i = 0; i < LABELTABSIZE; i++) {
i                 165 src/label.c            for(p = labels[i]; p != NULL; p = q) {
i                 172 src/label.c            labels[i] = NULL;
i                  19 src/monitor.c      key[0]->val.i = adr;
i                  95 src/monitor.c      for(int i = 0; i < BPSTABSIZE; i++) {
i                  96 src/monitor.c          for(p = bps[i]; p != NULL; p = p->next) {
i                 118 src/monitor.c      for(int i = 0; i < BPSTABSIZE; i++) {
i                 119 src/monitor.c          freebpslist(bps[i]);
i                 120 src/monitor.c          bps[i] = NULL;
i                 137 src/monitor.c          int i = strcspn(p, " ");
i                 138 src/monitor.c          sepc = p[i];
i                 139 src/monitor.c          args->argv[(args->argc)++] = strndup_chk(p, i, "args->argv[]");
i                 140 src/monitor.c          p += i + 1;
i                 150 src/monitor.c      int i = 0;
i                 164 src/monitor.c      i = strcspn(p, " \t\n");
i                 165 src/monitor.c      moncmdl->cmd = strndup_chk(p, i, "moncmdl->cmd");
i                 167 src/monitor.c      p += i;
i                 184 src/monitor.c      int i;
i                 188 src/monitor.c      for(i = 0; i < str2c; i++) {
i                 189 src/monitor.c          if(strcmp(str1, str2v[i]) == 0) {
i                 198 src/monitor.c      int i;
i                 199 src/monitor.c      for(i = 0; i < argc; i++) {
i                 200 src/monitor.c          if(i > 0) {
i                 203 src/monitor.c          fprintf(stderr, "%s", argv[i]);
i                 211 src/monitor.c      int i = 0;
i                 213 src/monitor.c          i++;
i                 216 src/monitor.c          i++;
i                 226 src/monitor.c              i += 2;
i                 233 src/monitor.c              i += 2;
i                 240 src/monitor.c              i++;
i                 249 src/monitor.c          if(argc > i) {
i                 250 src/monitor.c              warn_ignore_arg(argc - i, argv + i);
i                 257 src/monitor.c      int i = 0;
i                 261 src/monitor.c          i++;
i                 264 src/monitor.c          i++;
i                 266 src/monitor.c      if(argc > i) {
i                 267 src/monitor.c          dump_start = nh2word(argv[i++]);
i                 268 src/monitor.c          if(argc > i) {
i                 269 src/monitor.c              if(argv[i][0] =='+') {
i                 270 src/monitor.c                  dump_end = dump_start + nh2word(argv[i] + 1);
i                 272 src/monitor.c                  dump_end = nh2word(argv[i]);
i                 277 src/monitor.c          i++;
i                 279 src/monitor.c      if(argc > i) {
i                 280 src/monitor.c          warn_ignore_arg(argc - i, argv + i);
i                 359 src/monitor.c      int i;
i                 362 src/monitor.c          for(i = 0;  i < moncmdl->args->argc; i++) {
i                 363 src/monitor.c              FREE(moncmdl->args->argv[i]);
i                 100 src/struct.c       keys[1]->val.i = (int)(type & 070);
i                 118 src/struct.c       for(int i = 0; i < comet2cmdsize; i++) {
i                 120 src/struct.c           p->cmd = &comet2cmd[i];
i                 122 src/struct.c               hashval = hash_cmdtype(comet2cmd[i].name, comet2cmd[i].type);
i                 124 src/struct.c               hashval = hash_code(comet2cmd[i].code);
i                 140 src/struct.c       for(int i = 0; i < CMDTABSIZE; i++) {
i                 141 src/struct.c           for(p = cmdtab[hash][i]; p != NULL; p = q) {
i                 145 src/struct.c           cmdtab[hash][i] = NULL;
i                 179 src/struct.c       keys[0]->val.i = (int)(code >> 8);
i                 264 src/struct.c       for(int i = 0; i < GRSIZE; i++) {                    /* 汎用レジスタ  */
i                 265 src/struct.c           sys->cpu->gr[i] = 0x0;
i                  34 src/token.c        int i = 0, cnt_quote = 0;
i                  49 src/token.c            if(p[i] == '=') {
i                  50 src/token.c                i++;
i                  53 src/token.c            if(p[i] == '\'') {
i                  55 src/token.c                if(p[i+1] != '\'' && (quoting == false || p[i-1] != '\'')) {
i                  59 src/token.c                if(p[i+1] != '\'') {
i                  65 src/token.c                if(!p[i]) {
i                  69 src/token.c                i++;
i                  71 src/token.c                i += strcspn(p + i, ", ");
i                  72 src/token.c                if(i == 0) {
i                  76 src/token.c                if(i - cnt_quote > OPDSIZE) {
i                  80 src/token.c                sepc = p[i];
i                  81 src/token.c                opd->opdv[(opd->opdc)++] = strndup_chk(p, i, "opd->opdv[]");
i                  82 src/token.c                p += i + 1;
i                  83 src/token.c                i = cnt_quote = 0;
i                 100 src/token.c        int i;
i                 120 src/token.c        if((i = strcspn(p, " \t")) == 0) {
i                 123 src/token.c            cmdl->label = strndup_chk(p, i, "cmdl->label");
i                 125 src/token.c            if(i > LABELSIZE) {
i                 134 src/token.c        p += i;
i                 147 src/token.c        i = strcspn(p, " \t");
i                 148 src/token.c        cmdl->cmd = strndup_chk(p, i, "cmdl.cmd");
i                 152 src/token.c        p += i;
i                 127 src/word.c         int i = 0;
i                 131 src/word.c             bit[i++] = (word & mask) ? '1' : '0';
i                 133 src/word.c         bit[i] = '\0';
i                   5 test/unit/bpshash/cmd.c     int i;
i                   7 test/unit/bpshash/cmd.c     for(i = 0; i < 10; i++) {
i                   8 test/unit/bpshash/cmd.c         printf("%ld: %d\n", (long)w[i], adrhash(w[i]));
i                   8 test/unit/getcmdcode/cmd.c     int i;
i                  31 test/unit/getcmdcode/cmd.c     for(i = 0; i < sizeof(cmdcodelist)/sizeof(cmdcodelist[0]); i++) {
i                  32 test/unit/getcmdcode/cmd.c         code = getcmdcode(cmdcodelist[i].cmd, cmdcodelist[i].type);
i                  33 test/unit/getcmdcode/cmd.c         printf("%s:0%02o ---> #%04X\n", cmdcodelist[i].cmd, cmdcodelist[i].type, code);
i                   8 test/unit/getgr/cmd.c     int i, j;
i                  24 test/unit/getgr/cmd.c     for(i = 0; i <= 1; i++) {
i                  25 test/unit/getgr/cmd.c         title = (is_x[i] == false) ? "Generel Register" : "Index Register";
i                  29 test/unit/getgr/cmd.c             r = getgr(str[j], is_x[i]);
i                   9 test/unit/hash/cmd.c     int i;
i                  13 test/unit/hash/cmd.c     for(i = 0; i < 2; i++) {
i                  14 test/unit/hash/cmd.c         keys[i] = malloc(sizeof(HKEY));
i                  15 test/unit/hash/cmd.c         keys[i]->type = CHARS;
i                  16 test/unit/hash/cmd.c         keys[i]->val.s = strdup(str[i]);
i                  24 test/unit/hash/cmd.c     int num[2] = {19, 11}, i;
i                  28 test/unit/hash/cmd.c     for(i = 0; i < 2; i++) {
i                  29 test/unit/hash/cmd.c         keys[i] = malloc(sizeof(HKEY));
i                  30 test/unit/hash/cmd.c         keys[i]->type = INT;
i                  31 test/unit/hash/cmd.c         keys[i]->val.i = num[i];
i                  40 test/unit/hash/cmd.c     int num[2] = {19, 11}, i, cnt = 0;
i                  44 test/unit/hash/cmd.c     for(i = 0; i < 2; i++) {
i                  47 test/unit/hash/cmd.c         keys[cnt++]->val.s = strdup(str[i]);
i                  49 test/unit/hash/cmd.c     for(i = 0; i < 2; i++) {
i                  52 test/unit/hash/cmd.c         keys[cnt++]->val.i = num[i];
i                   8 test/unit/linetok/cmd.c     int i, j;
i                  25 test/unit/linetok/cmd.c     for(i = 0; i < sizeof testline /sizeof testline[0]; i++) {
i                  27 test/unit/linetok/cmd.c         printf("%d: %s", i, testline[i]);
i                  28 test/unit/linetok/cmd.c         testcl = linetok(testline[i]);
i                   7 test/unit/nh2word/cmd.c     int i;
i                  17 test/unit/nh2word/cmd.c     for(i = 0; i < sizeof(str)/sizeof(str[0]); i++) {
i                  19 test/unit/nh2word/cmd.c         r = nh2word(str[i]);
i                  20 test/unit/nh2word/cmd.c         printf("%s\t#%04X", str[i], r);
i                   8 test/unit/opdtok/cmd.c     int i, j;
i                  21 test/unit/opdtok/cmd.c     for(i = 0; i < ARRAYSIZE(str); i++) {
i                  23 test/unit/opdtok/cmd.c         printf("%s\n", str[i]);
i                  24 test/unit/opdtok/cmd.c         opd = opdtok(str[i]);
i                  40 test/unit/setcerr/cmd.c     int i, j;
i                  50 test/unit/setcerr/cmd.c     for(i = 0; i < ARRAYSIZE(str); i++) {
i                  52 test/unit/setcerr/cmd.c             setcerr(code[j], str[i]);
i                  53 test/unit/setcerr/cmd.c             printf("%d: %s - %d\t%s\n", code[j], str[i], cerr->num, cerr->msg);
i                  14 test/unit/strip_casl2_comment/cmd.c     for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) {
i                  15 test/unit/strip_casl2_comment/cmd.c         printf("%s::\n", strip_casl2_comment(s[i]));
i                   7 test/unit/strip_end/cmd.c     for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) {
i                   8 test/unit/strip_end/cmd.c         printf("%s:\n", strip_end(s[i]));
i                   9 test/unit/strrev/cmd.c     for(unsigned i = 0; i < ARRAYSIZE(src); i++) {
i                  10 test/unit/strrev/cmd.c         dst = strrev(src[i]);