]> git.sur5r.net Git - cc65/commitdiff
atari5200: add screensize function
authorChristian Groessler <chris@groessler.org>
Tue, 2 Apr 2019 20:06:53 +0000 (22:06 +0200)
committerOliver Schmidt <ol.sc@web.de>
Fri, 12 Apr 2019 10:49:38 +0000 (12:49 +0200)
libsrc/atari5200/_scrsize.s [new file with mode: 0644]
libsrc/atari5200/textcolor.s

diff --git a/libsrc/atari5200/_scrsize.s b/libsrc/atari5200/_scrsize.s
new file mode 100644 (file)
index 0000000..025b1b3
--- /dev/null
@@ -0,0 +1,19 @@
+;
+; Christian Groessler, 02-Apr-2019
+;
+; Screen size variables
+;
+
+        .export         screensize
+        .importzp       screen_width, screen_height
+        .include        "atari.inc"
+
+.proc   screensize
+
+        ldx     #screen_width
+        ldy     #screen_height
+        rts
+
+.endproc
+
+
index 061e8408848aa75a29d44b0f8be326cfc7d6052e..5989451349629c78c1d2365162a85558daa14bbe 100644 (file)
@@ -6,8 +6,6 @@
         .export         _textcolor
         .import         conio_color
 
-        .include        "atari.inc"
-
 
 _textcolor:
         ; move bits #0 and #1 to bits #6 and #7