From 72bc2e894cc2816990ffeee99004a9a8017692f9 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Wed, 6 Feb 2019 21:57:29 +0900 Subject: [PATCH] =?utf8?q?=E3=82=BD=E3=83=BC=E3=82=B9=E3=81=AE=E6=8E=A8?= =?utf8?q?=E6=95=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/dump.c | 2 +- src/struct.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dump.c b/src/dump.c index d00d274..45f6706 100644 --- a/src/dump.c +++ b/src/dump.c @@ -39,7 +39,7 @@ void dspregister() 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", diff --git a/src/struct.c b/src/struct.c index 22a7df3..cc4d986 100644 --- a/src/struct.c +++ b/src/struct.c @@ -122,7 +122,7 @@ bool create_cmdtable(CMDTAB_HASH hash) 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; -- 2.18.0