1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 00:29:31 +00:00

atari5200: add screensize function

This commit is contained in:
Christian Groessler 2019-04-02 22:06:53 +02:00 committed by Oliver Schmidt
parent db01036e2e
commit 79b9a8d2df
2 changed files with 19 additions and 2 deletions

View File

@ -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

View File

@ -6,8 +6,6 @@
.export _textcolor
.import conio_color
.include "atari.inc"
_textcolor:
; move bits #0 and #1 to bits #6 and #7