]> git.sur5r.net Git - cc65/blob - libsrc/atari5200/chline.s
atari5200: conio now uses just four colors altogether
[cc65] / libsrc / atari5200 / 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
9         .import         gotoxy, cputdirect
10         .importzp       tmp1
11         .include        "atari5200.inc"
12
13 _chlinexy:
14         pha                     ; Save the length
15         jsr     gotoxy          ; Call this one, will pop params
16         pla                     ; Restore the length
17
18 _chline:
19         cmp     #0              ; Is the length zero?
20         beq     L9              ; Jump if done
21         sta     tmp1
22 L1:     lda     #CH_HLINE       ; Horizontal line, screen code
23         jsr     cputdirect      ; Direct output
24         dec     tmp1
25         bne     L1
26 L9:     rts