Mercurial > hg > Members > kono > os9 > sbc09
diff v09.c @ 2:31d96e2b364e
add virtual hd option to v09
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 02 Jul 2018 21:39:55 +0900 |
parents | 3c736a81b886 |
children | 831ac057ea86 |
line wrap: on
line diff
--- a/v09.c Mon Jul 02 19:07:39 2018 +0900 +++ b/v09.c Mon Jul 02 21:39:55 2018 +0900 @@ -38,8 +38,9 @@ FILE *tracefile; -extern FILE *fp; -extern char *prog; +extern FILE *disk[]; +extern FILE *fp; // for disasm +extern char *prog; // for disasm extern void disasm(int,int); void do_trace(FILE *tracefile) @@ -115,6 +116,12 @@ i++; timer = 0; // non standard rom image, don't start timer romfile = argv[i]; + } else if (strcmp(argv[i],"-0")==0) { + i++; + disk[0] = fopen(argv[i],"r+"); + } else if (strcmp(argv[i],"-1")==0) { + i++; + disk[1] = fopen(argv[i],"r+"); } else if (strcmp(argv[i],"-tl")==0) { i++; tracelo=strtol(argv[i],(char**)0,0);