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
|
|
|
|
2015-09-20 10:18:41 +00:00
|
|
|
.import plot
|
2015-08-29 13:58:57 +00:00
|
|
|
.export _clrscr
|
2014-11-29 13:18:48 +00:00
|
|
|
_clrscr:
|
|
|
|
|
2015-08-29 13:58:57 +00:00
|
|
|
st0 #VDC_MAWR
|
|
|
|
st1 #<$0000
|
|
|
|
st2 #>$0000
|
2014-11-29 13:18:48 +00:00
|
|
|
|
2015-08-29 13:58:57 +00:00
|
|
|
st0 #VDC_VWR
|
|
|
|
ldy #$40
|
|
|
|
rowloop:
|
|
|
|
ldx #$80
|
|
|
|
colloop:
|
|
|
|
lda #' '
|
|
|
|
sta a:VDC_DATA_LO
|
|
|
|
lda #$02
|
|
|
|
sta a:VDC_DATA_HI
|
2014-11-29 13:18:48 +00:00
|
|
|
|
2015-08-29 13:58:57 +00:00
|
|
|
dex
|
|
|
|
bne colloop
|
|
|
|
dey
|
|
|
|
bne rowloop
|
2014-11-29 13:18:48 +00:00
|
|
|
|
2015-09-19 13:37:39 +00:00
|
|
|
; Go to the home position.
|
|
|
|
|
|
|
|
stz CURS_X
|
|
|
|
stz CURS_Y
|
2015-09-20 10:18:41 +00:00
|
|
|
jmp plot
|
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
|
2015-08-29 13:58:57 +00:00
|
|
|
conio_init = initconio
|