1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-31 11:29:16 +00:00
cc65/libsrc/telemon30/graphics.s

52 lines
722 B
ArmAsm
Raw Normal View History

2016-12-14 20:22:10 +00:00
.export _paper,_hires,_text,_circle,_curset, _switchOffCursor
.importzp sp,tmp2,tmp3,tmp1
.include "telemon30.inc"
.proc _paper
ldx #0 ; First window
; A contains the paper
BRK_TELEMON XPAPER
rts
.endproc
; XINK is bugged, it corrupt memory : removing from export
.proc _ink
ldx #0 ; First window
; A contains the ink
BRK_TELEMON XINK
rts
.endproc
; can be optimized with a macro
.proc _hires
BRK_TELEMON XHIRES
rts
.endproc
.proc _text
BRK_TELEMON XTEXT
rts
.endproc
.proc _curset
sta HRSX
sty HRSY
BRK_TELEMON XCURSE
rts
.endproc
.proc _circle
sta HRS1
BRK_TELEMON XCIRCL
rts
.endproc
.proc _switchOffCursor
ldx #0
BRK_TELEMON XCOSCR
rts
.endproc