mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 11:51:49 +09:00
disabling broken code until fixed
This commit is contained in:
@@ -208,13 +208,14 @@ class VMJSR223Delegate(private val vm: VM) {
|
|||||||
* ^A-^Z: 1 through 26
|
* ^A-^Z: 1 through 26
|
||||||
*/
|
*/
|
||||||
fun readKey(): Int {
|
fun readKey(): Int {
|
||||||
/*val inputStream = vm.getInputStream()
|
val inputStream = vm.getInputStream()
|
||||||
var key: Int = inputStream.read()
|
var key: Int = inputStream.read()
|
||||||
inputStream.close()
|
inputStream.close()
|
||||||
return key*/
|
return key
|
||||||
|
|
||||||
// impl that doesn't rely on InputStream
|
// impl that doesn't rely on InputStream
|
||||||
vm.getIO().let {
|
// fixme it's causing event-wise delay
|
||||||
|
/*vm.getIO().let {
|
||||||
it.mmio_write(38, 1)
|
it.mmio_write(38, 1)
|
||||||
|
|
||||||
vm.isIdle.set(true)
|
vm.isIdle.set(true)
|
||||||
@@ -225,7 +226,7 @@ class VMJSR223Delegate(private val vm: VM) {
|
|||||||
|
|
||||||
it.mmio_write(38, 0)
|
it.mmio_write(38, 0)
|
||||||
return it.mmio_read(37L)!!.toUint()
|
return it.mmio_read(37L)!!.toUint()
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user