initial import, completely untested, does not compile yet

This commit is contained in:
mrdudz
2014-11-29 14:18:48 +01:00
parent fed3179d3b
commit faccc5a3d6
23 changed files with 1974 additions and 0 deletions

27
libsrc/pcengine/clrscr.s Normal file
View File

@@ -0,0 +1,27 @@
.include "pcengine.inc"
.export _clrscr
_clrscr:
st0 #VDC_MAWR
st1 #<$0000
st2 #>$0000
st0 #VDC_VWR
ldy #$40
rowloop: ldx #$80
colloop:
lda #' '
staio VDC_DATA_LO
lda #$02
staio VDC_DATA_HI
dex
bne colloop
dey
bne rowloop
rts