More P500 support
git-svn-id: svn://svn.cc65.org/cc65/trunk@920 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -18,19 +18,26 @@
|
||||
sta CURS_Y
|
||||
jsr plot ; Set cursor to top left corner
|
||||
|
||||
ldx #4
|
||||
ldy #$00
|
||||
lda #$20 ; Screencode for blank
|
||||
L1: sta (CharPtr),y
|
||||
iny
|
||||
bne L1
|
||||
inc CharPtr+1
|
||||
dex
|
||||
bne L1
|
||||
|
||||
jmp plot ; Set screen pointer again
|
||||
ldx #$00
|
||||
ldy #$00
|
||||
jsr clearpage
|
||||
jsr clearpage
|
||||
jsr clearpage
|
||||
ldx #<(40*25)
|
||||
jsr clearpage ; Clear remainder of last page
|
||||
jmp plot ; Set screen pointer again
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
.proc clearpage
|
||||
|
||||
@L1: sta (SCREEN_PTR),y
|
||||
iny
|
||||
dex
|
||||
bne @L1
|
||||
inc SCREEN_PTR+1
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
Reference in New Issue
Block a user