atari5200: fix _clrscr to use correct screen size

Could be different than default when linking with atari5200-conioscreen-20x12.o.
This commit is contained in:
Christian Groessler
2025-03-04 23:07:13 +01:00
parent b0220e5456
commit 16224cdd36
2 changed files with 3 additions and 2 deletions

View File

@@ -7,8 +7,9 @@
.export _clrscr
.include "atari5200.inc"
.importzp ptr1
.importzp screen_width, screen_height
SCRSIZE = 480 ; 20x24: size of default conio atari5200 screen
SCRSIZE = screen_width * screen_height
_clrscr:lda SAVMSC ; screen memory
sta ptr1