]> git.sur5r.net Git - cc65/blob - libsrc/c64/soft80_chline.s
0fc711870257d4b51b9e7f5f5f9d3de9b3d9584a
[cc65] / libsrc / c64 / soft80_chline.s
1 ;
2 ; void chlinexy (unsigned char x, unsigned char y, unsigned char length);
3 ; void chline (unsigned char length);
4 ;
5
6         .export         soft80_chlinexy, soft80_chline
7         .import         popa, _gotoxy, cputdirect ; FIX/CHECK
8         .importzp       tmp1
9
10 soft80_chlinexy:
11         pha                     ; Save the length
12         jsr     popa            ; Get y
13         jsr     _gotoxy         ; Call this one, will pop params
14         pla                     ; Restore the length
15
16 soft80_chline:
17         cmp     #0              ; Is the length zero?
18         beq     L9              ; Jump if done
19         sta     tmp1
20 L1:     lda     #96             ; Horizontal line, screen code
21         jsr     cputdirect      ; Direct output
22         dec     tmp1
23         bne     L1
24 L9:     rts
25
26
27
28