1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00
cc65/libsrc/telestrat/clrscr.s

39 lines
635 B
ArmAsm
Raw Normal View History

;
; jede jede@oric.org 2017-02-25
;
2017-02-25 21:10:13 +00:00
.export _clrscr
.importzp sp
.include "telestrat.inc"
.proc _clrscr
2017-10-16 15:28:00 +00:00
; Switch to text mode
BRK_TELEMON(XTEXT)
2017-02-25 21:10:13 +00:00
lda #<SCREEN
2017-02-25 21:23:46 +00:00
ldy #>SCREEN
2017-02-25 21:10:13 +00:00
sta RES
sty RES+1
ldy #<(SCREEN+SCREEN_XSIZE*SCREEN_YSIZE)
ldx #>(SCREEN+SCREEN_XSIZE*SCREEN_YSIZE)
lda #' '
BRK_TELEMON XFILLM
2017-02-25 21:23:46 +00:00
; reset prompt position
2017-02-25 21:10:13 +00:00
lda #<(SCREEN+40)
sta ADSCRL
lda #>(SCREEN+40)
sta ADSCRH
2017-02-25 21:23:46 +00:00
; reset display position
lda #$01
2017-02-25 21:10:13 +00:00
sta SCRY
lda #$00
2017-02-25 21:10:13 +00:00
sta SCRX
rts
.endproc