simple conio support for GEOS
git-svn-id: svn://svn.cc65.org/cc65/trunk@1093 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
35
libsrc/geos/conio/clrscr.s
Normal file
35
libsrc/geos/conio/clrscr.s
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 27.10.2001
|
||||
|
||||
; void clrscr (void);
|
||||
|
||||
.export _clrscr
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
.include "../inc/const.inc"
|
||||
|
||||
_clrscr:
|
||||
lda #ST_WR_FORE | ST_WR_BACK
|
||||
sta dispBufferOn
|
||||
lda #0
|
||||
jsr SetPattern
|
||||
lda #0
|
||||
sta r3L
|
||||
sta r3H
|
||||
sta r2L
|
||||
lda #199
|
||||
sta r2H
|
||||
lda graphMode
|
||||
bpl L40
|
||||
lda #>639 ; 80 columns
|
||||
ldx #<639
|
||||
bne L99
|
||||
L40: lda #>319 ; 40 columns
|
||||
ldx #<319
|
||||
L99: sta r4H
|
||||
stx r4L
|
||||
jmp Rectangle
|
||||
Reference in New Issue
Block a user