2022-04-02 09:39:55 +03:00
|
|
|
|
|
|
|
.include "atari7800.inc"
|
|
|
|
|
|
|
|
.export _clrscr
|
|
|
|
|
2022-04-16 21:13:51 +03:00
|
|
|
.import _screen
|
2022-04-19 20:01:47 +03:00
|
|
|
.import pushax, __bzero
|
2022-04-16 21:13:51 +03:00
|
|
|
.include "extzp.inc"
|
|
|
|
|
|
|
|
.code
|
|
|
|
|
|
|
|
.proc _clrscr
|
|
|
|
|
2022-04-18 12:09:19 +03:00
|
|
|
lda #<_screen
|
|
|
|
ldx #>_screen
|
2022-04-19 20:01:47 +03:00
|
|
|
jsr pushax
|
|
|
|
ldx #>(charsperline * screenrows)
|
|
|
|
lda #<(charsperline * screenrows)
|
|
|
|
jmp __bzero
|
2022-04-16 21:13:51 +03:00
|
|
|
|
|
|
|
.endproc
|
2022-04-02 09:39:55 +03:00
|
|
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
; force the init constructor to be imported
|
|
|
|
|
|
|
|
.import initconio
|
|
|
|
conio_init = initconio
|