1
0
mirror of https://github.com/cc65/cc65.git synced 2024-08-17 03:29:15 +00:00
cc65/libsrc/atari7800/clrscr.s

27 lines
470 B
ArmAsm
Raw Normal View History

2022-04-02 06:39:55 +00:00
.include "atari7800.inc"
.export _clrscr
.import _screen
2022-04-04 07:50:38 +00:00
.import pusha0,pushax, __bzero
2022-04-02 06:39:55 +00:00
.code
.proc _clrscr
lda #<(_screen)
ldx #>(_screen)
jsr pushax
ldx #>(charsperline * screenrows)
lda #<(charsperline * screenrows)
jmp __bzero
.endproc
;-------------------------------------------------------------------------------
; force the init constructor to be imported
.import initconio
conio_init = initconio