From: Christian Groessler Date: Tue, 2 Apr 2019 20:06:53 +0000 (+0200) Subject: atari5200: add screensize function X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79b9a8d2dfa6d13af7f2de963cc591fec786a6b0;p=cc65 atari5200: add screensize function --- 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