]> git.sur5r.net Git - cc65/blob - libsrc/creativision/cvline.s
Fixed _textcolor definition.
[cc65] / libsrc / creativision / 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
8         .export         _cvlinexy, _cvline
9         .import         popa, _gotoxy, putchar, newline
10         .importzp       tmp1
11
12         .include        "creativision.inc"
13
14 _cvlinexy:
15         pha                     ; Save the length
16         jsr     popa            ; Get y
17         jsr     _gotoxy         ; Call this one, will pop params
18         pla                     ; Restore the length and run into _cvline
19
20 _cvline:
21         cmp     #0              ; Is the length zero?
22         beq     L9              ; Jump if done
23         sta     tmp1
24 L1:     lda     #CH_VLINE       ; Vertical bar
25         jsr     putchar         ; Write, no cursor advance
26         jsr     newline         ; Advance cursor to next line
27         dec     tmp1
28         bne     L1
29 L9:     rts