mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-09 22:54:03 +09:00
forgot to reset the drive :p
This commit is contained in:
@@ -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");
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
// load TVDOS.SYS
|
// load TVDOS.SYS
|
||||||
let p = _BIOS.FIRST_BOOTABLE_PORT;
|
let p = _BIOS.FIRST_BOOTABLE_PORT;
|
||||||
|
com.sendMessage(p[0], "DEVRST\x17");
|
||||||
com.sendMessage(p[0], 'OPENR"tvdos/TVDOS.SYS",'+p[1]);
|
com.sendMessage(p[0], 'OPENR"tvdos/TVDOS.SYS",'+p[1]);
|
||||||
let r = com.getStatusCode(p[0]);
|
let r = com.getStatusCode(p[0]);
|
||||||
if (r == 0){
|
if (r == 0){
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ class TestDiskDrive(private val driveNum: Int, theRootPath: File? = null) : Bloc
|
|||||||
val inputString = trimNull(inputData).toString(VM.CHARSET)
|
val inputString = trimNull(inputData).toString(VM.CHARSET)
|
||||||
|
|
||||||
if (inputString.startsWith("DEVRST\u0017")) {
|
if (inputString.startsWith("DEVRST\u0017")) {
|
||||||
|
println("[TestDiskDrive] Device Reset")
|
||||||
//readModeLength = -1
|
//readModeLength = -1
|
||||||
fileOpen = false
|
fileOpen = false
|
||||||
fileOpenMode = -1
|
fileOpenMode = -1
|
||||||
|
|||||||
Reference in New Issue
Block a user