mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 19:55:09 +00:00
atari5200: add screensize function
This commit is contained in:
parent
db01036e2e
commit
79b9a8d2df
19
libsrc/atari5200/_scrsize.s
Normal file
19
libsrc/atari5200/_scrsize.s
Normal 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
|
||||||
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
|||||||
.export _textcolor
|
.export _textcolor
|
||||||
.import conio_color
|
.import conio_color
|
||||||
|
|
||||||
.include "atari.inc"
|
|
||||||
|
|
||||||
|
|
||||||
_textcolor:
|
_textcolor:
|
||||||
; move bits #0 and #1 to bits #6 and #7
|
; move bits #0 and #1 to bits #6 and #7
|
||||||
|
Loading…
Reference in New Issue
Block a user