]> git.sur5r.net Git - cc65/blobdiff - libsrc/plus4/_scrsize.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / plus4 / _scrsize.s
index 15dd1f778aef5d4ae95980977017657e58a2368d..19f92d7e5b7e3c44817c77f9303b3cc434fd83ad 100644 (file)
@@ -4,11 +4,18 @@
 ; Screen size variables
 ;
 
-       .export         xsize, ysize
+       .export         screensize
 
-.data             
+; We will return the values directly instead of banking in the ROM and calling
+; SCREEN which is a lot more overhead in code size and CPU cycles.
+
+.proc   screensize
+
+        ldx     #40
+        ldy     #25
+        rts
+
+.endproc
 
-xsize:         .byte   40
-ysize: .byte   25