forgot to reset the drive :p

This commit is contained in:
minjaesong
2020-10-30 23:38:37 +09:00
parent 21dd2ead8f
commit ca906d8606
3 changed files with 3 additions and 1 deletions

View File

@@ -1 +1 @@
let p=_BIOS.FIRST_BOOTABLE_PORT;com.sendMessage(p[0],'OPENR"tvdos/TVDOS.SYS",'+p[1]);let r=com.getStatusCode(p[0]);if(0==r)if(com.sendMessage(p[0],"READ"),r=com.getStatusCode([0]),0==r){let g=com.pullMessage(p[0]);eval(g)}else println("I/O Error");else println("TVDOS.SYS not found");
let p=_BIOS.FIRST_BOOTABLE_PORT;com.sendMessage(p[0], "DEVRST\x17");com.sendMessage(p[0],'OPENR"tvdos/TVDOS.SYS",'+p[1]);let r=com.getStatusCode(p[0]);if(0==r)if(com.sendMessage(p[0],"READ"),r=com.getStatusCode([0]),0==r){let g=com.pullMessage(p[0]);eval(g)}else println("I/O Error");else println("TVDOS.SYS not found");

View File

@@ -1,5 +1,6 @@
// load TVDOS.SYS
let p = _BIOS.FIRST_BOOTABLE_PORT;
com.sendMessage(p[0], "DEVRST\x17");
com.sendMessage(p[0], 'OPENR"tvdos/TVDOS.SYS",'+p[1]);
let r = com.getStatusCode(p[0]);
if (r == 0){

View File

@@ -125,6 +125,7 @@ class TestDiskDrive(private val driveNum: Int, theRootPath: File? = null) : Bloc
val inputString = trimNull(inputData).toString(VM.CHARSET)
if (inputString.startsWith("DEVRST\u0017")) {
println("[TestDiskDrive] Device Reset")
//readModeLength = -1
fileOpen = false
fileOpenMode = -1