mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 02:30:42 +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
|
||||
.import conio_color
|
||||
|
||||
.include "atari.inc"
|
||||
|
||||
|
||||
_textcolor:
|
||||
; move bits #0 and #1 to bits #6 and #7
|
||||
|
Loading…
x
Reference in New Issue
Block a user