2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 08.08.1998
|
|
|
|
;
|
|
|
|
; void cvlinexy (unsigned char x, unsigned char y, unsigned char length);
|
|
|
|
; void cvline (unsigned char length);
|
|
|
|
;
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "atari.inc"
|
|
|
|
|
|
|
|
.export _cvlinexy, _cvline
|
|
|
|
.import popa, _gotoxy, putchar, setcursor
|
|
|
|
.importzp tmp1
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2014-06-03 16:30:11 +00:00
|
|
|
.ifdef __ATARI5200__
|
2014-03-11 00:17:59 +00:00
|
|
|
CHRCODE = 1 ; exclamation mark
|
2014-06-03 16:30:11 +00:00
|
|
|
.else
|
|
|
|
CHRCODE = $7C ; Vertical bar
|
2014-03-11 00:17:59 +00:00
|
|
|
.endif
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
_cvlinexy:
|
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 and run into _cvline
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_cvline:
|
2013-05-09 11:56:54 +00:00
|
|
|
cmp #0 ; Is the length zero?
|
|
|
|
beq L9 ; Jump if done
|
|
|
|
sta tmp1
|
|
|
|
L1: lda COLCRS
|
|
|
|
pha
|
2014-03-11 00:17:59 +00:00
|
|
|
lda #CHRCODE ; Vertical bar
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr putchar ; Write, no cursor advance
|
|
|
|
pla
|
|
|
|
sta COLCRS
|
|
|
|
inc ROWCRS
|
|
|
|
dec tmp1
|
|
|
|
bne L1
|
|
|
|
L9: jmp setcursor
|