1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00
cc65/libsrc/pce/kplot.s

40 lines
782 B
ArmAsm
Raw Normal View History

2015-08-29 13:58:57 +00:00
.export PLOT
2015-08-29 13:58:57 +00:00
.include "pce.inc"
2015-09-19 13:37:39 +00:00
.include "extzp.inc"
PLOT:
2015-08-29 13:58:57 +00:00
bcs @getpos
2015-08-29 13:58:57 +00:00
tya
2015-09-20 10:18:41 +00:00
;clc ; already cleared
2015-08-29 13:58:57 +00:00
adc _plotlo,x
sta SCREEN_PTR
2015-08-29 13:58:57 +00:00
lda _plothi,x
adc #0
sta SCREEN_PTR+1
@getpos:
2015-08-29 13:58:57 +00:00
ldx CURS_Y
ldy CURS_X
rts
2015-09-04 12:14:17 +00:00
.rodata
_plotlo:
2015-08-29 13:58:57 +00:00
.repeat screenrows,line
.byte <($0000+(line*$80))
.endrepeat
_plothi:
2015-08-29 13:58:57 +00:00
.repeat screenrows,line
.byte >($0000+(line*$80))
.endrepeat
;-------------------------------------------------------------------------------
; force the init constructor to be imported
2015-08-29 13:58:57 +00:00
.import initconio
conio_init = initconio