2014-11-29 13:18:48 +00:00
|
|
|
|
2015-07-12 12:27:24 +00:00
|
|
|
.export PLOT
|
2014-11-29 13:18:48 +00:00
|
|
|
|
2015-07-12 12:27:24 +00:00
|
|
|
.include "pce.inc"
|
2014-11-29 13:18:48 +00:00
|
|
|
|
|
|
|
PLOT:
|
2015-07-12 12:27:24 +00:00
|
|
|
bcs @getpos
|
2014-11-29 13:18:48 +00:00
|
|
|
|
2015-07-12 12:27:24 +00:00
|
|
|
tya
|
|
|
|
clc
|
|
|
|
adc _plotlo,x
|
|
|
|
sta SCREEN_PTR
|
2014-11-29 13:18:48 +00:00
|
|
|
|
2015-07-12 12:27:24 +00:00
|
|
|
lda _plothi,x
|
|
|
|
adc #0
|
|
|
|
sta SCREEN_PTR+1
|
2014-11-29 13:18:48 +00:00
|
|
|
@getpos:
|
2015-07-12 12:27:24 +00:00
|
|
|
ldx CURS_Y
|
|
|
|
ldy CURS_X
|
|
|
|
rts
|
2014-11-29 13:18:48 +00:00
|
|
|
|
|
|
|
_plotlo:
|
2015-07-12 12:27:24 +00:00
|
|
|
.repeat screenrows,line
|
|
|
|
.byte <($0000+(line*$80))
|
|
|
|
.endrepeat
|
2014-11-29 13:18:48 +00:00
|
|
|
|
|
|
|
_plothi:
|
2015-07-12 12:27:24 +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
|
|
|
|
|
|
|
|
.import initconio
|
|
|
|
conio_init = initconio
|
2014-11-29 13:18:48 +00:00
|
|
|
|