mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-09 20:51:51 +09:00
bios logo smooth move-up animation
This commit is contained in:
@@ -78,6 +78,13 @@ class GraphicsJSR223Delegate(val vm: VM) {
|
||||
return intArrayOf(-1, -1)
|
||||
}
|
||||
|
||||
fun setCursorYX(cy: Int, cx: Int) {
|
||||
getFirstGPU()?.let {
|
||||
it.setCursorPos(cy - 1, cx - 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun setBackground(r: Int, g: Int, b: Int) {
|
||||
getFirstGPU()?.let {
|
||||
it.poke(250880, r.toByte())
|
||||
@@ -107,6 +114,12 @@ class GraphicsJSR223Delegate(val vm: VM) {
|
||||
}
|
||||
}
|
||||
|
||||
fun putSymbolAt(cy: Int, cx: Int, c: Int) {
|
||||
getFirstGPU()?.let {
|
||||
it.putChar(cx - 1, cy - 1, c.toByte())
|
||||
}
|
||||
}
|
||||
|
||||
/*private fun GraphicsAdapter._loadbulk(fromAddr: Int, toAddr: Int, length: Int) {
|
||||
UnsafeHelper.memcpy(
|
||||
vm.usermem.ptr + fromAddr,
|
||||
|
||||
Reference in New Issue
Block a user