]> git.sur5r.net Git - cc65/blob - libsrc/gamate/cvline.s
Merge pull request #849 from polluks/patch-4
[cc65] / libsrc / gamate / 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         gotoxy, putchar, newline
10         .importzp       tmp1
11
12         .include        "gamate.inc"
13
14 _cvlinexy:
15         pha                     ; Save the length
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     #CH_VLINE       ; Vertical bar
24         jsr     putchar         ; Write, no cursor advance
25         jsr     newline         ; Advance cursor to next line
26         dec     tmp1
27         bne     L1
28 L9:     rts
29
30
31