word 163 include/struct.h char *grstr(WORD word); word 34 include/word.h char *word2n(WORD word); word 43 include/word.h char *word2bit(const WORD word); word 53 include/word.h void print_dumpword(WORD word, bool logicalmode); word 61 src/assemble.c void writememory(WORD word, WORD adr, PASS pass); word 371 src/assemble.c void writememory(WORD word, WORD adr, PASS pass) word 381 src/assemble.c (sys->memory)[adr] = word; word 383 src/assemble.c fprintf(stdout, "\t#%04X\t#%04X\n", adr, word); word 58 src/disassemble.c void disassemble_cmd_adr_x(CMDTYPE cmdtype, const char *cmdname, WORD word, WORD adr, WORD pradr); word 70 src/disassemble.c void disassemble_cmd_r(CMDTYPE cmdtype, const char *cmdname, WORD word, WORD pradr); word 80 src/disassemble.c void disassemble_dc(WORD word, WORD pradr); word 93 src/disassemble.c void disassemble_cmd_adr_x(CMDTYPE cmdtype, const char *cmdname, WORD word, WORD adr, WORD pradr) word 101 src/disassemble.c cnt += fprintf(stdout, "%s,", g = grstr((word & 0x00F0) >> 4)); word 105 src/disassemble.c if((x = (word & 0x000F)) != 0) { word 109 src/disassemble.c disassemble_puts_code(cnt, pradr, 2, (WORD []){word, adr}); word 112 src/disassemble.c void disassemble_cmd_r(CMDTYPE cmdtype, const char *cmdname, WORD word, WORD pradr) word 121 src/disassemble.c g1 = grstr((word & 0x00F0) >> 4); word 122 src/disassemble.c g2 = grstr(word & 0x000F); word 127 src/disassemble.c g = grstr((word & 0x00F0) >> 4); word 131 src/disassemble.c disassemble_puts_code(cnt, pradr, 1, (WORD []){word}); word 134 src/disassemble.c void disassemble_dc(WORD word, WORD pradr) word 138 src/disassemble.c cnt = fprintf(stdout, " DC %-5d ", word); word 139 src/disassemble.c disassemble_puts_code(cnt, pradr, 1, (WORD []){word}); word 141 src/disassemble.c print_dumpword(word, true); word 171 src/disassemble.c WORD word = 0; word 173 src/disassemble.c while(!feof(stream) && word == 0) { word 174 src/disassemble.c word = fgetword(stream); word 188 src/disassemble.c WORD word = 0; word 204 src/disassemble.c for(word = fgetword(fp); !feof(fp); i++, word = fgetword(fp)) { word 205 src/disassemble.c cmd = word & 0xFF00; word 208 src/disassemble.c if(word == 0){ word 221 src/disassemble.c disassemble_dc(word, i); word 224 src/disassemble.c disassemble_cmd_adr_x(cmdtype, cmdname, word, fgetword(fp), i++); word 226 src/disassemble.c disassemble_cmd_r(cmdtype, cmdname, word, i); word 28 src/dumpword.c WORD word = 0; word 62 src/dumpword.c word = nh2word(argv[optind]); word 68 src/dumpword.c print_dumpword(word, logicalmode); word 240 src/struct.c char *grstr(WORD word) word 242 src/struct.c assert(word <= 7); word 246 src/struct.c sprintf(str, "GR%d", word); word 102 src/word.c char *word2n(WORD word) word 112 src/word.c s[d++] = word % 10 + '0'; word 113 src/word.c } while((word /= 10) > 0); word 120 src/word.c char *word2bit(const WORD word) word 131 src/word.c bit[i++] = (word & mask) ? '1' : '0'; word 137 src/word.c void print_dumpword(WORD word, bool logicalmode) word 139 src/word.c char *bit = word2bit(word); word 142 src/word.c fprintf(stdout, "%6u", word); word 144 src/word.c fprintf(stdout, "%6d", (signed short)word); word 146 src/word.c fprintf(stdout, " = #%04X = %s", word, bit); word 148 src/word.c if(word >= 0x20 && word <= 0x7E) { word 149 src/word.c fprintf(stdout, " = \'%c\'", word); word 150 src/word.c } else if(word == 0xA) { word 152 src/word.c } else if(word == '\t') {