mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
removed double sleeping on baud rate emulation
This commit is contained in:
@@ -39,7 +39,7 @@ data class AdapterConfig(
|
||||
val paletteShader: String = DRAW_SHADER_FRAG,
|
||||
val drawScale: Float = 1f,
|
||||
val scaleFiltered: Boolean = false,
|
||||
val baudRate: Double = 115200.0,
|
||||
val baudRate: Double = 57600.0,
|
||||
val bitsPerChar: Int = 10 // start bit + 8 data bits + stop bit
|
||||
)
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ open class TexticsAdapterBase(assetsRoot: String, vm: VM, config: AdapterConfig)
|
||||
in 0 until 250972 -> (-1).toByte()
|
||||
else -> super.peek(addr)
|
||||
}
|
||||
applyDelay()
|
||||
}
|
||||
|
||||
override fun poke(addr: Long, byte: Byte) {
|
||||
@@ -62,12 +61,10 @@ open class TexticsAdapterBase(assetsRoot: String, vm: VM, config: AdapterConfig)
|
||||
in 0 until 250972 -> { /*do nothing*/ }
|
||||
else -> super.poke(addr, byte)
|
||||
}
|
||||
applyDelay()
|
||||
}
|
||||
|
||||
override fun setCursorPos(x: Int, y: Int) {
|
||||
super.setCursorPos(x, y)
|
||||
applyDelay()
|
||||
}
|
||||
|
||||
override fun putChar(x: Int, y: Int, text: Byte, foreColour: Byte, backColour: Byte) {
|
||||
@@ -123,7 +120,7 @@ class Term(assetsRoot: String, vm: VM) : TexticsAdapterBase(assetsRoot, vm, Adap
|
||||
"./hp2640.png",
|
||||
0.32f,
|
||||
GraphicsAdapter.TEXT_TILING_SHADER_MONOCHROME,
|
||||
baudRate = 115200.0
|
||||
baudRate = 57600.0
|
||||
))
|
||||
|
||||
class WpTerm(assetsRoot: String, vm: VM) : TexticsAdapterBase(assetsRoot, vm, AdapterConfig(
|
||||
|
||||
Reference in New Issue
Block a user