Add basic conio buffer
This commit is contained in:
31
libsrc/atari7800/clrscr.s
Normal file
31
libsrc/atari7800/clrscr.s
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
.include "atari7800.inc"
|
||||
|
||||
.export _clrscr
|
||||
|
||||
.import CURS_X
|
||||
.import CURS_Y
|
||||
.import _screen
|
||||
.import pushax, __bzero
|
||||
|
||||
.code
|
||||
|
||||
.proc _clrscr
|
||||
|
||||
lda #0
|
||||
sta CURS_X
|
||||
sta CURS_Y
|
||||
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
|
||||
Reference in New Issue
Block a user