]> git.sur5r.net Git - cc65/commitdiff
Added scrsize() function.
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sun, 30 Nov 2014 15:01:43 +0000 (16:01 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sun, 30 Nov 2014 15:01:43 +0000 (16:01 +0100)
libsrc/c1p/_scrsize.s [new file with mode: 0644]

diff --git a/libsrc/c1p/_scrsize.s b/libsrc/c1p/_scrsize.s
new file mode 100644 (file)
index 0000000..75de2b3
--- /dev/null
@@ -0,0 +1,22 @@
+;
+; based on PET implementation
+;
+; originally by:
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+        .export         screensize
+
+        .include        "extzp.inc"
+
+.proc   screensize
+
+        ldx     SCR_LINELEN
+        inx                     ; Variable is one less
+        ldy     #25
+        rts
+
+.endproc
+