]> 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 c63df59d234697537f3d9aaf986d49fc9713e639..19f92d7e5b7e3c44817c77f9303b3cc434fd83ad 100644 (file)
@@ -4,22 +4,18 @@
 ; Screen size variables
 ;
 
-       .export         xsize, ysize
-        .import         SCREEN
-       .constructor    initscrsize
+       .export         screensize
 
+; 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.
 
-.code
+.proc   screensize
 
-initscrsize:
-       jsr     SCREEN
-       stx     xsize
-       sty     ysize
-       rts
+        ldx     #40
+        ldy     #25
+        rts
 
-.bss
+.endproc
 
-xsize:         .res    1
-ysize: .res    1