2022-04-02 06:39:55 +00:00
|
|
|
|
|
|
|
.include "atari7800.inc"
|
|
|
|
|
|
|
|
.export _clrscr
|
|
|
|
|
2022-04-16 18:13:51 +00:00
|
|
|
.import _screen
|
2022-04-19 17:01:47 +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)
|
|
|
|
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
|