]> git.sur5r.net Git - cc65/blob - libsrc/atari/cvline.s
don't import newline
[cc65] / libsrc / atari / cvline.s
1 ;
2 ; Ullrich von Bassewitz, 08.08.1998
3 ;
4 ; void cvlinexy (unsigned char x, unsigned char y, unsigned char length);
5 ; void cvline (unsigned char length);
6 ;
7         .include "atari.inc"
8         
9         .export         _cvlinexy, _cvline
10         .import         popa, _gotoxy, putchar
11         .importzp       tmp1
12
13 _cvlinexy:
14         pha                     ; Save the length
15         jsr     popa            ; Get y
16         jsr     _gotoxy         ; Call this one, will pop params
17         pla                     ; Restore the length and run into _cvline
18
19 _cvline:
20         cmp     #0              ; Is the length zero?
21         beq     L9              ; Jump if done
22         sta     tmp1
23 L1:     lda     COLCRS
24         pha
25         lda     #$7C            ; Vertical bar
26         jsr     putchar         ; Write, no cursor advance
27         pla
28         sta     COLCRS
29         inc     ROWCRS
30         dec     tmp1
31         bne     L1
32 L9:     rts
33
34
35