]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/_scrsize.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / atari / _scrsize.s
index 5578c1be15c7366f522cfd70399eef0814e82646..2d69d669e4c19b4142fb046dfdafa6520a5c94a2 100644 (file)
@@ -4,12 +4,16 @@
 ; Screen size variables
 ;
 
-       .export         xsize, ysize
+       .export         screensize
+       .include        "atari.inc"
 
-.rodata
+.proc   screensize
 
-xsize:         .byte   40
-ysize: .byte   24
+        ldx     RMARGN
+        inx
+        ldy     #24
+        rts
 
+.endproc