mirror of
https://github.com/irmen/ksim65.git
synced 2024-06-10 17:29:28 +00:00
do not crash anymore when multicolor mode is enabled
This commit is contained in:
parent
1123ddf482
commit
2ad73432f6
|
@ -148,8 +148,9 @@ internal class Screen(private val chargen: Rom, val ram: MemoryComponent) : JPan
|
|||
|
||||
private fun renderCharacterMode(vicBank: Address, vicVMCSB: Int, multiColorMode: Boolean) {
|
||||
if (multiColorMode) {
|
||||
TODO("multicolor character mode")
|
||||
} else {
|
||||
// TODO multicolor character mode, for now, falls back to normal char mode
|
||||
}
|
||||
|
||||
// normal character mode
|
||||
val screenAddress = vicBank+(vicVMCSB ushr 4) shl 10
|
||||
val charsetAddress = (vicVMCSB and 0b00001110) shl 10
|
||||
|
@ -161,7 +162,6 @@ internal class Screen(private val chargen: Rom, val ram: MemoryComponent) : JPan
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun renderBitmapMode(vicBank: Address, vicVMCSB: Int, multiColorMode: Boolean) {
|
||||
val bitmap = ram.getBlock(vicBank+if (vicVMCSB and 0b00001000 != 0) 32*256 else 0, 32*256)
|
||||
|
|
Loading…
Reference in New Issue
Block a user