1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-15 06:27:36 +00:00
Files
cc65/libsrc/pce/kplot.s
2014-11-29 15:13:40 +01:00

42 lines
403 B
ArmAsm

.export PLOT
.include "pcengine.inc"
PLOT:
bcs @getpos
tya
clc
adc _plotlo,x
sta SCREEN_PTR
lda _plothi,x
adc #0
sta SCREEN_PTR+1
;clc
;adc _colplot,x
;sta CRAM_PTR
;lda #$23
;sta CRAM_PTR+1
@getpos:
ldx CURS_Y
ldy CURS_X
rts
_plotlo:
.repeat screenrows,line
.byte <($0000+(line*$80))
.endrepeat
_plothi:
.repeat screenrows,line
.byte >($0000+(line*$80))
.endrepeat