diff --git a/src/kernal/init/e518.cint_legacy.s b/src/kernal/init/e518.cint_legacy.s index 04815503..23ef60ec 100644 --- a/src/kernal/init/e518.cint_legacy.s +++ b/src/kernal/init/e518.cint_legacy.s @@ -14,10 +14,25 @@ cint_legacy: // $E518 +#if ROM_LAYOUT_M65 + + jsr M65_MODEGET + bcs !+ + + jsr M65_MODESET + bra cint_legacy_end +!: +#endif + // Setup video and I/O // See here: https://csdb.dk/forums/index.php?roomid=11&topicid=17048&firstpost=22 + jsr vicii_init + // FALLTROUGH + +cint_legacy_end: + // Code below must be placed under $E51B, or some code will break - see here: // - https://csdb.dk/forums/index.php?roomid=11&topicid=17048&firstpost=2 // Game 'Operacja Proboszcz' is one example. diff --git a/src/kernal/screen/e544.clear_screen.s b/src/kernal/screen/e544.clear_screen.s index 8c3abe1d..a153885e 100644 --- a/src/kernal/screen/e544.clear_screen.s +++ b/src/kernal/screen/e544.clear_screen.s @@ -12,6 +12,14 @@ clear_screen: + +#if ROM_LAYOUT_M65 + + jsr M65_MODEGET + bcc_16 M65_CLRSCR + +#endif + // Clear the line link table - cheecked on original ROMs, // the highest bit set means that the line is NOT a logical // continuation of the previous one