fixed the YSCROLL graphics mode on the C64 (mistake in 5.1)

This commit is contained in:
Irmen de Jong 2020-11-23 23:05:51 +01:00
parent 6d8c4f403f
commit 58a9452c36
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ graphics {
sub enable_bitmap_mode() { sub enable_bitmap_mode() {
; enable bitmap screen, erase it and set colors to black/white. ; enable bitmap screen, erase it and set colors to black/white.
c64.SCROLY = %00111000 c64.SCROLY = %00111011
c64.SCROLX = %00001000 c64.SCROLX = %00001000
c64.VMCSB = (c64.VMCSB & %11110000) | %00001000 ; $2000-$3fff c64.VMCSB = (c64.VMCSB & %11110000) | %00001000 ; $2000-$3fff
clear_screen(1, 0) clear_screen(1, 0)
@ -20,7 +20,7 @@ graphics {
sub disable_bitmap_mode() { sub disable_bitmap_mode() {
; enables text mode, erase the text screen, color white ; enables text mode, erase the text screen, color white
c64.SCROLY = %00011000 c64.SCROLY = %00011011
c64.SCROLX = %00001000 c64.SCROLX = %00001000
c64.VMCSB = (c64.VMCSB & %11110000) | %00000100 ; $1000-$2fff c64.VMCSB = (c64.VMCSB & %11110000) | %00000100 ; $1000-$2fff
txt.fill_screen(' ', 1) txt.fill_screen(' ', 1)

View File

@ -45,6 +45,7 @@ main {
} }
} }
; graphics.disable_bitmap_mode()
; test_stack.test() ; test_stack.test()
repeat { repeat {