1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00
cc65/libsrc/atari7800/clrscr.s

28 lines
591 B
ArmAsm
Raw Permalink Normal View History

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