char *sp, *pr, *fr;
for(i = 0; i < GRSIZE; i++ ) {
fprintf(stdout, "#%04X: GR%d: ", sys->cpu->pr, i);
- print_dumpword(sys->cpu->gr[i], (&execmode)->logical);
+ print_dumpword(sys->cpu->gr[i], execmode.logical);
fprintf(stdout, "\n");
}
fprintf(stdout, "#%04X: SP: %6d = #%04X = %s\n",
if(hash == HASH_CMDTYPE) {
hashval = hash_cmdtype(comet2cmd[i].name, comet2cmd[i].type);
} else if(hash == HASH_CODE) {
- hashval = hash_code((&comet2cmd[i])->code);
+ hashval = hash_code(comet2cmd[i].code);
}
p->next = cmdtab[hash][hashval];
cmdtab[hash][hashval] = p;