1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-06 15:06:07 +00:00
cc65/libsrc/creativision/cclear.s

27 lines
551 B
ArmAsm
Raw Normal View History

2013-12-05 11:40:44 +00:00
;*
;* void cclearxy (unsigned char x, unsigned char y, unsigned char length);
;* void cclear (unsigned char length);
;*
2017-02-01 18:46:04 +00:00
.export _cclearxy, _cclear
.import popa, _gotoxy, cputdirect
.importzp tmp1
2013-12-05 11:40:44 +00:00
_cclearxy:
2017-02-01 18:46:04 +00:00
pha ; Save length
jsr popa ; get Y
jsr _gotoxy
pla
2013-12-05 11:40:44 +00:00
_cclear:
2017-02-01 18:46:04 +00:00
cmp #0 ; Zero length?
beq L2
sta tmp1
2013-12-05 11:40:44 +00:00
2017-02-01 18:46:04 +00:00
L1: lda #$20 ; Space
jsr cputdirect
dec tmp1
bne L1
L2: rts