1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
cc65/libsrc/atari7800/clrscr.s

28 lines
589 B
ArmAsm
Raw 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
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