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