2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 08.08.1998
|
|
|
|
;
|
|
|
|
; void cclearxy (unsigned char x, unsigned char y, unsigned char length);
|
|
|
|
; void cclear (unsigned char length);
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _cclearxy, _cclear
|
2016-06-05 12:58:38 +00:00
|
|
|
.import gotoxy, cputdirect
|
2013-05-09 11:56:54 +00:00
|
|
|
.importzp tmp1
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_cclearxy:
|
2013-05-09 11:56:54 +00:00
|
|
|
pha ; Save the length
|
2016-06-05 12:58:38 +00:00
|
|
|
jsr gotoxy ; Call this one, will pop params
|
2013-05-09 11:56:54 +00:00
|
|
|
pla ; Restore the length and run into _cclear
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_cclear:
|
2013-05-09 11:56:54 +00:00
|
|
|
cmp #0 ; Is the length zero?
|
|
|
|
beq L9 ; Jump if done
|
2022-04-17 14:06:22 +00:00
|
|
|
sta tmp1
|
2013-05-09 11:56:54 +00:00
|
|
|
L1: lda #0 ; Blank - screen code
|
|
|
|
jsr cputdirect ; Direct output
|
|
|
|
dec tmp1
|
|
|
|
bne L1
|
|
|
|
L9: rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|