cc65: C128 conio scrolls the screen when it shouldn't

what the topic says, a workaround is:

*((unsigned char*)0xf8)=0xff; // disable all scrolling (workaround for buggy conio)

it could perhaps be done in the constructor. this happens in both 40col and 80col (VDC) mode when printing to the character at the bottom right

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 25 (25 by maintainers)

Most upvoted comments

“most programs in the commodore world do not exit to basic. actually most do not exit at all - and if they exit, they would usually do that with a soft reset.” - it’s getting off-topic but the fact that most non-BASIC programs do not exit back to BASIC or exit via soft reset is because most programmers were lazy in this regard or didn’t have enough resources (memory) left in their games/demos or both. Programs I write (occasionally, I admit) these days using cc65/ca65 always do proper cleanup and return to BASIC. Whenever possible (most of the times) they can also be run again, and again, and again. Therefore the fact that people got used to being treated poorly in this regard doesn’t mean that they wouldn’t like a program that would exit cleanly and could possibly be run again without re-loading. Personally I find this way much more mature and elegant.