BIOS with selectable boot device

This commit is contained in:
minjaesong
2022-05-10 12:47:53 +09:00
parent 09a7698205
commit 537651993e
4 changed files with 171 additions and 2 deletions

View File

@@ -128,6 +128,12 @@ class WorldRadar(pngfile: FileHandle) : BlockTransferInterface(false, true) {
}
oldCmdbuf = cmdbuf
statusCode = TestDiskDrive.STATE_CODE_STANDBY
}
else {
resetBuf()
statusCode = TestDiskDrive.STATE_CODE_ILLEGAL_COMMAND
}
}
}

View File

@@ -32,7 +32,8 @@ public class AppLoader {
// VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{OEMBios.INSTANCE, BasicRom.INSTANCE});
// VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TandemBios.INSTANCE, BasicRom.INSTANCE});
// VM vm = new VM(128 << 10, new TheRealWorld(), new VMProgramRom[]{BasicBios.INSTANCE, WPBios.INSTANCE});
VM vm = new VM("./assets", 8192 << 10, new TheRealWorld(), new VMProgramRom[]{TsvmBios.INSTANCE});
// VM vm = new VM("./assets", 8192 << 10, new TheRealWorld(), new VMProgramRom[]{TsvmBios.INSTANCE});
VM vm = new VM("./assets", 8192 << 10, new TheRealWorld(), new VMProgramRom[]{OpenBios.INSTANCE});
VM pipvm = new VM("./assets", 4096, new TheRealWorld(), new VMProgramRom[]{PipBios.INSTANCE, PipROM.INSTANCE});
String diskPath = "assets/disk0";