1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 15:05:14 +00:00
cc65/libsrc/pce/kplot.s

38 lines
831 B
ArmAsm
Raw Normal View History

2015-07-12 12:27:24 +00:00
.export PLOT
2015-07-12 12:27:24 +00:00
.include "pce.inc"
PLOT:
2015-07-12 12:27:24 +00:00
bcs @getpos
2015-07-12 12:27:24 +00:00
tya
clc
adc _plotlo,x
sta SCREEN_PTR
2015-07-12 12:27:24 +00:00
lda _plothi,x
adc #0
sta SCREEN_PTR+1
@getpos:
2015-07-12 12:27:24 +00:00
ldx CURS_Y
ldy CURS_X
rts
_plotlo:
2015-07-12 12:27:24 +00:00
.repeat screenrows,line
.byte <($0000+(line*$80))
.endrepeat
_plothi:
2015-07-12 12:27:24 +00:00
.repeat screenrows,line
.byte >($0000+(line*$80))
.endrepeat
;-------------------------------------------------------------------------------
; force the init constructor to be imported
.import initconio
conio_init = initconio