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