]> git.sur5r.net Git - cc65/blob - libsrc/pce/cvline.s
Adjusted doc to code.
[cc65] / libsrc / pce / 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
10         .import         gotoxy, putchar, newline
11         .importzp       tmp1
12
13         .include        "pce.inc"
14
15 _cvlinexy:
16         pha                     ; Save the length
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