]> git.sur5r.net Git - cc65/blob - libsrc/apple2/chline.s
Add new maintainer
[cc65] / libsrc / apple2 / chline.s
1 ;
2 ; Ullrich von Bassewitz, 08.08.1998
3 ;
4 ; void chlinexy (unsigned char x, unsigned char y, unsigned char length);
5 ; void chline (unsigned char length);
6 ;
7
8         .export         _chlinexy, _chline, chlinedirect
9         .import         popa, _gotoxy, cputdirect
10         .importzp       tmp1
11
12 _chlinexy:
13         pha                     ; Save the length
14         jsr     popa            ; Get y
15         jsr     _gotoxy         ; Call this one, will pop params
16         pla                     ; Restore the length and run into _chline
17
18 _chline:
19         ldx     #'-' | $80      ; Horizontal line, screen code
20
21 chlinedirect:
22         cmp     #$00            ; Is the length zero?
23         beq     L9              ; Jump if done
24         sta     tmp1
25 L1:     txa                     ; Screen code
26         jsr     cputdirect      ; Direct output
27         dec     tmp1
28         bne     L1
29 L9:     rts