From 79b9a8d2dfa6d13af7f2de963cc591fec786a6b0 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Tue, 2 Apr 2019 22:06:53 +0200 Subject: [PATCH] atari5200: add screensize function --- libsrc/atari5200/_scrsize.s | 19 +++++++++++++++++++ libsrc/atari5200/textcolor.s | 2 -- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 libsrc/atari5200/_scrsize.s diff --git a/libsrc/atari5200/_scrsize.s b/libsrc/atari5200/_scrsize.s new file mode 100644 index 000000000..025b1b3ff --- /dev/null +++ b/libsrc/atari5200/_scrsize.s @@ -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 + + diff --git a/libsrc/atari5200/textcolor.s b/libsrc/atari5200/textcolor.s index 061e84088..598945134 100644 --- a/libsrc/atari5200/textcolor.s +++ b/libsrc/atari5200/textcolor.s @@ -6,8 +6,6 @@ .export _textcolor .import conio_color - .include "atari.inc" - _textcolor: ; move bits #0 and #1 to bits #6 and #7 -- 2.39.5