bios logo smooth move-up animation

This commit is contained in:
minjaesong
2021-09-25 16:00:42 +09:00
parent 39b8996f9c
commit 212296eb3d
3 changed files with 42 additions and 13 deletions

View File

@@ -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,