MEGA65 native screen fixes

This commit is contained in:
FeralChild64 committed 2020-08-26 22:25:56 +02:00
1 parent ecafb43807
commit c32650f7f5
10 files changed
+88 -86

No files matched your search

+9 -10
View File
@@ -54,9 +54,9 @@ m65_scrmodeset_internal: // entry point for M65_MODE65
// Set the logical row length to 80
ldx #$50
// stx VIC_CHARSTEP+0
stx VIC_CHARSTEP+0
ldx #$00
// stx VIC_CHARSTEP+1
stx VIC_CHARSTEP+1
// Set the following locations:
// - M64_SCRWINMODE - for scroll-console mode
@@ -74,13 +74,12 @@ m65_scrmodeset_internal: // entry point for M65_MODE65
// - VIC_SCRNPTR+0/+1 - for screen viewport start
// - M65_COLVIEW, VIC_COLPTR - for using color memory from the start
ldx #>($9000)
ldx #>MEMCONF_SCRBASE
stx M65_SCRBASE+1
stx VIC_SCRNPTR+1
ldx #<($9000)
ldx #<MEMCONF_SCRBASE
stx M65_SCRBASE+0
stx VIC_SCRNPTR+0
stx M65_COLVIEW+0
@@ -89,17 +88,17 @@ m65_scrmodeset_internal: // entry point for M65_MODE65
stx VIC_COLPTR+1
// Set the following locations:
// - M65_SCRGUARD, M65_COLGUARD - for max 128 lines of virtual screen
// - M65_SCRGUARD, M65_COLGUARD - for max lines of virtual screen
// - M65_COLVIEWMAX - as above, but depending on the mode
ldx #<($9000 + 80 * 128)
ldx #<(MEMCONF_SCRBASE + 80 * MEMCONF_SCRROWS)
stx M65_SCRGUARD+0
ldx #>($9000 + 80 * 128)
ldx #>(MEMCONF_SCRBASE + 80 * MEMCONF_SCRROWS)
stx M65_SCRGUARD+1
ldx #<(80 * 128)
ldx #<(80 * MEMCONF_SCRROWS)
stx M65_COLGUARD+0
ldx #>(80 * 128)
ldx #>(80 * MEMCONF_SCRROWS)
stx M65_COLGUARD+1
ldx M65_SCRMODE