Mercurial > hg > Members > kono > os9 > sbc09
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:3c736a81b886 | 2:31d96e2b364e |
---|---|
36 | 36 |
37 #include "v09.h" | 37 #include "v09.h" |
38 | 38 |
39 FILE *tracefile; | 39 FILE *tracefile; |
40 | 40 |
41 extern FILE *fp; | 41 extern FILE *disk[]; |
42 extern char *prog; | 42 extern FILE *fp; // for disasm |
43 extern char *prog; // for disasm | |
43 extern void disasm(int,int); | 44 extern void disasm(int,int); |
44 | 45 |
45 void do_trace(FILE *tracefile) | 46 void do_trace(FILE *tracefile) |
46 { | 47 { |
47 Word pc=pcreg; | 48 Word pc=pcreg; |
113 tracing=1;attention=1; | 114 tracing=1;attention=1; |
114 } else if (strcmp(argv[i],"-rom")==0) { | 115 } else if (strcmp(argv[i],"-rom")==0) { |
115 i++; | 116 i++; |
116 timer = 0; // non standard rom image, don't start timer | 117 timer = 0; // non standard rom image, don't start timer |
117 romfile = argv[i]; | 118 romfile = argv[i]; |
119 } else if (strcmp(argv[i],"-0")==0) { | |
120 i++; | |
121 disk[0] = fopen(argv[i],"r+"); | |
122 } else if (strcmp(argv[i],"-1")==0) { | |
123 i++; | |
124 disk[1] = fopen(argv[i],"r+"); | |
118 } else if (strcmp(argv[i],"-tl")==0) { | 125 } else if (strcmp(argv[i],"-tl")==0) { |
119 i++; | 126 i++; |
120 tracelo=strtol(argv[i],(char**)0,0); | 127 tracelo=strtol(argv[i],(char**)0,0); |
121 } else if (strcmp(argv[i],"-th")==0) { | 128 } else if (strcmp(argv[i],"-th")==0) { |
122 i++; | 129 i++; |