ソースの書き方を変更
[YACASL2.git] / src / comet2.c
index 2f7696a..3d429d1 100644 (file)
@@ -18,7 +18,7 @@ static struct option longopts[] = {
     {"memorysize", required_argument, NULL, 'M'},
     {"clocks", required_argument, NULL, 'C'},
     {"help", no_argument, NULL, 'h'},
-    {0, 0, 0, 0}
+    {0, 0, 0, 0},
 };
 
 /**
@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
     }
     /* COMET II仮想マシンのリセット */
     reset(memsize, clocks);
-    prog->start = 0;
+    execptr->start = 0;
     if(loadassemble(argv[optind]) == true) {
         create_code_type();    /* タイプがキーの命令ハッシュ表を作成 */
         exec();                /* プログラム実行 */