mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-16 07:56:06 +09:00
test read cluster via COM
This commit is contained in:
@@ -339,6 +339,15 @@ class TevdDiskDrive(private val vm: VM, private val driveNum: Int, theTevdPath:
|
||||
fileOpenMode = -1
|
||||
statusCode.set(STATE_CODE_STANDBY)
|
||||
}
|
||||
else if (inputString.startsWith("READCLUST")) {
|
||||
if (fileOpen) {
|
||||
statusCode.set(STATE_CODE_FILE_ALREADY_OPENED)
|
||||
return
|
||||
}
|
||||
val clustnum = inputString.substring(9 until inputString.length).toInt()
|
||||
resetBuf()
|
||||
messageComposeBuffer.write(DOM.getRawCluster(clustnum))
|
||||
}
|
||||
else if (inputString.startsWith("READ")) {
|
||||
//readModeLength = inputString.substring(4 until inputString.length).toInt()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user