2 .include "atari5200.inc"
4 SCREEN_BUF_SIZE = 20 * 24
5 SCREEN_BUF = $4000 - SCREEN_BUF_SIZE
8 .export screen_setup_20x24
18 ; initialize cursor position
24 ldy #<(SCREEN_BUF_SIZE-1)
25 ldx #>(SCREEN_BUF_SIZE-1)
26 clrscr: sta (SAVMSC),y
46 ; display list for 20x24 text mode
52 .byte DL_CHR20x8x2 | DL_LMS
64 .assert ((* >> 10) = (dlist >> 10)), error, "Display list crosses 1K boundary"