fix vic bank screen address miscalculation

This commit is contained in:
Irmen de Jong 2020-02-18 04:21:35 +01:00
parent 2ad73432f6
commit 57e9bacef9
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ internal class Screen(private val chargen: Rom, val ram: MemoryComponent) : JPan
}
// normal character mode
val screenAddress = vicBank+(vicVMCSB ushr 4) shl 10
val screenAddress = vicBank+((vicVMCSB ushr 4) shl 10)
val charsetAddress = (vicVMCSB and 0b00001110) shl 10
for (y in 0 until ScreenDefs.SCREEN_HEIGHT_CHARS) {
for (x in 0 until ScreenDefs.SCREEN_WIDTH_CHARS) {