Mercurial > hg > Members > kono > os9 > sbc09
changeset 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 |
files | io.c os9/Makefile v09.c |
diffstat | 3 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/io.c Mon Jul 02 19:07:39 2018 +0900 +++ b/io.c Mon Jul 02 21:39:55 2018 +0900 @@ -101,8 +101,10 @@ if (c == '\n') c = '\r'; return c; - } else + } else { + usleep(100); return getchar(); + } } else if (xmstat == 1) { if (xidx) { c = xmbuf[xidx++];
--- a/os9/Makefile Mon Jul 02 19:07:39 2018 +0900 +++ b/os9/Makefile Mon Jul 02 21:39:55 2018 +0900 @@ -19,5 +19,5 @@ ./makerom os9b.rom modules/Basic09 modules/Shell modules/init.b modules/mdir modules/SysGo modules/IOMan modules/SCF modules/pty-dd.b modules/pty.b modules/OS9p2 modules/OS9 os9d.rom : makerom modules/init.b modules/pty.b - ./makerom os9d.rom modules/Shell modules/dir.b modules/list.b modules/init.b modules/mdir modules/SysGo modules/IOMan modules/SCF modules/rbf.b modules/pty-dd.b modules/pty.b modules/pdisk.b modules/d0.b modules/d1.b modules/clock.b modules/OS9p2 modules/OS9 + ./makerom os9d.rom modules/Shell modules/dir.b modules/init.b modules/mdir modules/SysGo modules/IOMan modules/SCF modules/rbf.b modules/pty-dd.b modules/pty.b modules/pdisk.b modules/d0.b modules/d1.b modules/clock.b modules/OS9p2 modules/OS9
--- 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);