mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
28 lines
589 B
ArmAsm
28 lines
589 B
ArmAsm
|
|
.include "atari7800.inc"
|
|
|
|
.export _clrscr
|
|
|
|
.import _screen
|
|
.import pushax, __bzero
|
|
.include "extzp.inc"
|
|
|
|
.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
|