2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 08.08.1998
|
|
|
|
;
|
|
|
|
; void chlinexy (unsigned char x, unsigned char y, unsigned char length);
|
|
|
|
; void chline (unsigned char length);
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _chlinexy, _chline
|
|
|
|
.import popa, _gotoxy, cputdirect
|
2015-10-12 19:04:06 +00:00
|
|
|
.importzp tmp1, chlinechar
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_chlinexy:
|
2013-05-09 11:56:54 +00:00
|
|
|
pha ; Save the length
|
|
|
|
jsr popa ; Get y
|
|
|
|
jsr _gotoxy ; Call this one, will pop params
|
|
|
|
pla ; Restore the length
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_chline:
|
2013-05-09 11:56:54 +00:00
|
|
|
cmp #0 ; Is the length zero?
|
|
|
|
beq L9 ; Jump if done
|
|
|
|
sta tmp1
|
2015-10-12 19:04:06 +00:00
|
|
|
L1: lda #chlinechar ; Horizontal line, screen code
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr cputdirect ; Direct output
|
|
|
|
dec tmp1
|
|
|
|
bne L1
|
|
|
|
L9: rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|