.segment "INIT"
initscrsize:
+.ifdef __GEOS_CBM__
lda graphMode
bpl L1
lda #80 ; 80 columns (more or less)
L1: lda #40 ; 40 columns (more or less)
sta xsize
lda #24 ; something like that for Y size
+.else
+ lda #70 ; 70 columns (more or less)
+ sta xsize
+ lda #23 ; something like that for Y size
+.endif
sta ysize
ldx #1
stx cursor_r
inx
stx cursor_r
jsr fixcursor ; home cursor
+.ifdef __GEOS_CBM__
lda #199
sta r2H
lda graphMode
bne L99
L40: lda #>319 ; 40 columns
ldx #<319
-L99: sta r4H
+L99:
+.else
+ lda #191
+ sta r2H
+ lda #>559
+ ldx #<559
+.endif
+ sta r4H
stx r4L
jsr Rectangle
pla