]> git.sur5r.net Git - cc65/blobdiff - libsrc/pet/_scrsize.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / pet / _scrsize.s
index 09c94182b66de9eb4589b235cd25d91a5d0661fd..ef8b4c56bd8a3479545032c58cd41e5ea39d90d4 100644 (file)
@@ -4,27 +4,16 @@
 ; Screen size variables
 ;
 
-
-       .export         xsize, ysize
-               .constructor    initscrsize
+       .export         screensize
 
        .include        "pet.inc"
 
-.code
+.proc   screensize
 
-initscrsize:
                ldx     SCR_LINELEN
        inx                     ; Variable is one less
-               stx     xsize
-       lda     #25
-       sta     ysize
+               ldy     #25
        rts
 
-
-.bss
-
-xsize:         .res    1
-ysize: .res    1
-
-
+.endproc